Implicit usings and more global usings

This commit is contained in:
Kwoth
2021-12-21 02:19:21 +01:00
parent 9223d78849
commit c66e491ce9
317 changed files with 272 additions and 1425 deletions

View File

@@ -1,13 +1,7 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using System.Collections.Immutable;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Games.Common.Acrophobia;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Common;
namespace NadekoBot.Modules.Games;

View File

@@ -1,12 +1,5 @@
using Discord;
using Discord.Commands;
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Services;
using NadekoBot.Db;
using NadekoBot.Db;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Modules.Games.Common.ChatterBot;
namespace NadekoBot.Modules.Games;

View File

@@ -1,8 +1,5 @@
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using CommandLine;
using NadekoBot.Common;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Games.Common.Acrophobia;

View File

@@ -1,7 +1,4 @@
using System.Net.Http;
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using Newtonsoft.Json;
namespace NadekoBot.Modules.Games.Common.ChatterBot;

View File

@@ -1,6 +1,4 @@
using System.Threading.Tasks;
namespace NadekoBot.Modules.Games.Common.ChatterBot;
namespace NadekoBot.Modules.Games.Common.ChatterBot;
public interface IChatterBotSession
{

View File

@@ -1,7 +1,4 @@
using NadekoBot.Common;
using Newtonsoft.Json;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace NadekoBot.Modules.Games.Common.ChatterBot;

View File

@@ -1,5 +1,4 @@
using Cloneable;
using NadekoBot.Common;
using NadekoBot.Common.Yml;
namespace NadekoBot.Modules.Games.Common;

View File

@@ -1,8 +1,4 @@
using System.IO;
using System.Net.Http;
using NadekoBot.Common;
using NadekoBot.Services;
using Image = SixLabors.ImageSharp.Image;
using Image = SixLabors.ImageSharp.Image;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;

View File

@@ -1,7 +1,5 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using System.IO;
using NadekoBot.Common;
using NadekoBot.Common.Yml;
namespace NadekoBot.Modules.Games.Hangman;

View File

@@ -1,13 +1,9 @@
#nullable enable
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Discord;
using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games.Hangman;

View File

@@ -1,6 +1,5 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Games.Hangman;

View File

@@ -1,6 +1,5 @@
#nullable enable
using System.Diagnostics.CodeAnalysis;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games.Hangman;

View File

@@ -1,7 +1,4 @@
using NadekoBot.Common;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Immutable;
namespace NadekoBot.Modules.Games.Common.Nunchi;

View File

@@ -1,8 +1,4 @@
using System.Threading.Tasks;
using Discord;
using System.Threading;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.Games.Common;

View File

@@ -1,12 +1,6 @@
using Discord;
using Discord.WebSocket;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using CommandLine;
using NadekoBot.Common;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games.Common;

View File

@@ -1,12 +1,5 @@
using System.Collections.Concurrent;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Discord;
using Discord.Net;
using Discord.WebSocket;
using System.Text;
using NadekoBot.Extensions;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games.Common.Trivia;

View File

@@ -1,5 +1,4 @@
using CommandLine;
using NadekoBot.Common;
namespace NadekoBot.Modules.Games.Common.Trivia;

View File

@@ -1,6 +1,4 @@
using NadekoBot.Common;
using NadekoBot.Services;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Games.Common.Trivia;

View File

@@ -1,12 +1,7 @@
using System.Diagnostics;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using NadekoBot.Common;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Services;
using CommandLine;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games.Common;

View File

@@ -1,14 +1,6 @@
using Discord;
using Discord.Commands;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Services;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Services;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Games;

View File

@@ -1,11 +1,6 @@
#nullable enable
using Discord.Commands;
using System.Threading.Tasks;
using Discord;
using NadekoBot.Common.Attributes;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Hangman;
using NadekoBot.Services;
namespace NadekoBot.Modules.Games;

View File

@@ -1,10 +1,5 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Games.Common.Nunchi;
using NadekoBot.Modules.Games.Common.Nunchi;
using NadekoBot.Modules.Games.Services;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Games;

View File

@@ -1,9 +1,4 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Extensions;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Services.Database.Models;
using System.Text;

View File

@@ -1,14 +1,8 @@
using System.Collections.Concurrent;
using System.Threading.Tasks;
using Discord;
using Discord.WebSocket;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using NadekoBot.Modules.Permissions.Common;
using NadekoBot.Modules.Permissions.Services;
using NadekoBot.Services;
using NadekoBot.Modules.Games.Common.ChatterBot;
using System.Net.Http;
namespace NadekoBot.Modules.Games.Services;

View File

@@ -1,6 +1,4 @@
using NadekoBot.Common;
using NadekoBot.Common.Configs;
using NadekoBot.Services;
using NadekoBot.Common.Configs;
using NadekoBot.Modules.Games.Common;
namespace NadekoBot.Modules.Games.Services;

View File

@@ -1,17 +1,9 @@
using Discord;
using NadekoBot.Common;
using NadekoBot.Services;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Common.Acrophobia;
using NadekoBot.Modules.Games.Common.Nunchi;
using NadekoBot.Modules.Games.Common.Trivia;
using Newtonsoft.Json;
using System.Collections.Concurrent;
using System.IO;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Caching.Memory;
namespace NadekoBot.Modules.Games.Services;

View File

@@ -1,10 +1,6 @@
using System.Collections.Concurrent;
using System.Threading.Tasks;
using Discord;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Common.Collections;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;

View File

@@ -1,12 +1,6 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Extensions;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Common;
namespace NadekoBot.Modules.Games;

View File

@@ -1,12 +1,5 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.Attributes;
using NadekoBot.Common;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Services;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Games;

View File

@@ -1,12 +1,5 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Services;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Games.Common.Trivia;
using NadekoBot.Modules.Games.Common.Trivia;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Common;
namespace NadekoBot.Modules.Games;