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,11 +1,4 @@
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.Attributes;
using NadekoBot.Common;
using NadekoBot.Services;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common.AnimalRacing;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Extensions;

View File

@@ -1,13 +1,7 @@
using Discord;
using Discord.Commands;
using NadekoBot.Common.Attributes;
using NadekoBot.Common;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common.Blackjack;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Extensions;
using System.Threading.Tasks;
using NadekoBot.Services;
namespace NadekoBot.Modules.Gambling;

View File

@@ -1,8 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Services;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common.AnimalRacing.Exceptions;
using NadekoBot.Modules.Games.Common;

View File

@@ -1,5 +1,4 @@
using CommandLine;
using NadekoBot.Common;
namespace NadekoBot.Modules.Gambling.Common.AnimalRacing;

View File

@@ -1,9 +1,4 @@
using System.Threading;
using System.Threading.Tasks;
using Discord;
using NadekoBot.Services;
namespace NadekoBot.Modules.Gambling.Common.Blackjack;
namespace NadekoBot.Modules.Gambling.Common.Blackjack;
public class Blackjack
{

View File

@@ -1,6 +1,4 @@
using Discord;
namespace NadekoBot.Modules.Gambling.Common.Blackjack;
namespace NadekoBot.Modules.Gambling.Common.Blackjack;
public abstract class Player
{

View File

@@ -1,7 +1,4 @@
using Discord;
using NadekoBot.Common;
namespace NadekoBot.Modules.Gambling.Common;
namespace NadekoBot.Modules.Gambling.Common;
public class CurrencyRaffleGame
{

View File

@@ -1,5 +1,4 @@
using NadekoBot.Common;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling.Common;

View File

@@ -1,5 +1,4 @@
using CommandLine;
using NadekoBot.Common;
namespace NadekoBot.Modules.Gambling.Common.Events;

View File

@@ -1,12 +1,6 @@
using Discord;
using Discord.WebSocket;
using NadekoBot.Common.Collections;
using NadekoBot.Services;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Gambling.Common.Events;

View File

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

View File

@@ -1,12 +1,6 @@
using Discord;
using Discord.WebSocket;
using NadekoBot.Common.Collections;
using NadekoBot.Services;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Gambling.Common.Events;

View File

@@ -1,5 +1,4 @@
using Cloneable;
using NadekoBot.Common;
using NadekoBot.Common.Yml;
using SixLabors.ImageSharp.PixelFormats;
using YamlDotNet.Serialization;

View File

@@ -1,6 +1,4 @@
using Discord;
using System.Threading.Tasks;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Services;
namespace NadekoBot.Modules.Gambling.Common;

View File

@@ -1,9 +1,4 @@
using NadekoBot.Common;
using NadekoBot.Services;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Gambling.Common;
namespace NadekoBot.Modules.Gambling.Common;
public class RollDuelGame
{

View File

@@ -1,6 +1,4 @@
using NadekoBot.Common;
namespace NadekoBot.Modules.Gambling.Common.Slot;
namespace NadekoBot.Modules.Gambling.Common.Slot;
public class SlotGame
{

View File

@@ -1,8 +1,4 @@
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Services;
namespace NadekoBot.Modules.Gambling.Common.WheelOfFortune;
namespace NadekoBot.Modules.Gambling.Common.WheelOfFortune;
public class WheelOfFortuneGame
{

View File

@@ -1,9 +1,5 @@
using CommandLine;
using NadekoBot.Common;
using NadekoBot.Services;
using System.Collections.Immutable;
using System.Threading;
using System.Threading.Tasks;
namespace NadekoBot.Modules.Gambling.Common.Connect4;

View File

@@ -1,15 +1,8 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common.Connect4;
using NadekoBot.Modules.Gambling.Services;
using System.Text;
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Services;
namespace NadekoBot.Modules.Gambling;

View File

@@ -1,11 +1,6 @@
using Discord;
using Discord.Commands;
using NadekoBot.Extensions;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common.Events;
using NadekoBot.Common;
using NadekoBot.Services.Database.Models;
using NadekoBot.Modules.Gambling.Common;

View File

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

View File

@@ -1,13 +1,7 @@
using Discord;
using Discord.Commands;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Extensions;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using NadekoBot.Services;
using Image = SixLabors.ImageSharp.Image;
namespace NadekoBot.Modules.Gambling;

View File

@@ -1,11 +1,4 @@
using Discord;
using Discord.Commands;
using NadekoBot.Extensions;
using System.Collections.Concurrent;
using System.IO;
using System.Threading.Tasks;
using NadekoBot.Common.Attributes;
using NadekoBot.Services;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common;
using Image = SixLabors.ImageSharp.Image;
using SixLabors.ImageSharp;

View File

@@ -1,14 +1,8 @@
using Discord;
using Discord.Commands;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using System.Threading.Tasks;
using NadekoBot.Services;
using Image = SixLabors.ImageSharp.Image;
namespace NadekoBot.Modules.Gambling;

View File

@@ -1,16 +1,9 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Db.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using System.Globalization;
using System.Numerics;
using System.Threading.Tasks;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;

View File

@@ -1,13 +1,7 @@
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common.Attributes;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Gambling.Services;
using System.Threading.Tasks;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Common;
namespace NadekoBot.Modules.Gambling;

View File

@@ -1,6 +1,4 @@
using NadekoBot.Services;
using System.Collections.Concurrent;
using NadekoBot.Modules.Gambling.Common.AnimalRacing;
using NadekoBot.Modules.Gambling.Common.AnimalRacing;
namespace NadekoBot.Modules.Gambling.Services;

View File

@@ -1,6 +1,4 @@
using NadekoBot.Modules.Gambling.Common.Blackjack;
using NadekoBot.Services;
using System.Collections.Concurrent;
namespace NadekoBot.Modules.Gambling.Services;

View File

@@ -1,9 +1,5 @@
using NadekoBot.Services;
using NadekoBot.Modules.Gambling.Common.Events;
using System.Collections.Concurrent;
using NadekoBot.Modules.Gambling.Common.Events;
using NadekoBot.Modules.Gambling.Common;
using Discord.WebSocket;
using System.Threading.Tasks;
using NadekoBot.Services.Database.Models;
namespace NadekoBot.Modules.Gambling.Services;

View File

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

View File

@@ -1,7 +1,5 @@
using NadekoBot.Common;
using NadekoBot.Common.Configs;
using NadekoBot.Common.Configs;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Services;
namespace NadekoBot.Modules.Gambling.Services;

View File

@@ -1,12 +1,7 @@
using Discord.WebSocket;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Services;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common.Connect4;
using NadekoBot.Modules.Gambling.Common.WheelOfFortune;
using Newtonsoft.Json;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db;
using NadekoBot.Modules.Gambling.Common.Slot;

View File

@@ -1,6 +1,4 @@
using System.Threading.Tasks;
namespace NadekoBot.Modules.Gambling.Services;
namespace NadekoBot.Modules.Gambling.Services;
public interface IShopService
{

View File

@@ -1,7 +1,5 @@
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Services;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;

View File

@@ -1,9 +1,5 @@
using Discord;
using Discord.WebSocket;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using SixLabors.Fonts;
@@ -11,10 +7,6 @@ using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Drawing.Processing;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using System.Collections.Concurrent;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using NadekoBot.Db;
using Image = SixLabors.ImageSharp.Image;
using Color = SixLabors.ImageSharp.Color;

View File

@@ -1,10 +1,6 @@
using System.Net.Http;
using System.Text.Json;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Services;
using Discord.WebSocket;
namespace NadekoBot.Modules.Gambling.Services;

View File

@@ -1,8 +1,5 @@
using Discord;
using NadekoBot.Modules.Gambling.Common.Waifu;
using NadekoBot.Services;
using NadekoBot.Modules.Gambling.Common.Waifu;
using NadekoBot.Services.Database.Models;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db;
using NadekoBot.Modules.Gambling.Common;

View File

@@ -1,13 +1,7 @@
using System.Threading.Tasks;
using Discord;
using Discord.Commands;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;

View File

@@ -1,15 +1,8 @@
using Discord;
using Discord.Commands;
using NadekoBot.Extensions;
using NadekoBot.Extensions;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Db.Models;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Services;
using SixLabors.Fonts;
using Image = SixLabors.ImageSharp.Image;
using SixLabors.ImageSharp.Processing;

View File

@@ -1,10 +1,6 @@
using Discord;
using Discord.Commands;
using NadekoBot.Common.Attributes;
using NadekoBot.Modules.Gambling.Common.Waifu;
using NadekoBot.Modules.Gambling.Common.Waifu;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using System.Threading.Tasks;
using NadekoBot.Modules.Gambling.Common;
namespace NadekoBot.Modules.Gambling;

View File

@@ -1,12 +1,7 @@
using Discord;
using NadekoBot.Common.Attributes;
using System.Threading.Tasks;
using Wof = NadekoBot.Modules.Gambling.Common.WheelOfFortune.WheelOfFortuneGame;
using Wof = NadekoBot.Modules.Gambling.Common.WheelOfFortune.WheelOfFortuneGame;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common;
using System.Collections.Immutable;
using NadekoBot.Common;
using NadekoBot.Services;
namespace NadekoBot.Modules.Gambling;