global using NadekoBot.Extensions

This commit is contained in:
Kwoth
2021-12-23 08:04:00 +07:00
parent 93b8bca018
commit da849f7c7b
146 changed files with 45 additions and 197 deletions
-1
View File
@@ -1,6 +1,5 @@
using Microsoft.Extensions.DependencyInjection;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Reflection;
@@ -1,5 +1,4 @@
using Microsoft.Extensions.DependencyInjection;
using NadekoBot.Extensions;
namespace NadekoBot.Common.Attributes;
+1 -2
View File
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using System.Globalization;
using System.Globalization;
namespace NadekoBot.Modules;
+1 -2
View File
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using StackExchange.Redis;
using StackExchange.Redis;
namespace NadekoBot.Common;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Administration.Services;
using System.Text.RegularExpressions;
namespace NadekoBot.Common;
@@ -1,6 +1,4 @@
using NadekoBot.Extensions;
namespace NadekoBot;
namespace NadekoBot;
public sealed record SmartEmbedText : SmartText
{
@@ -1,6 +1,4 @@
using NadekoBot.Extensions;
namespace NadekoBot.Common.TypeReaders;
namespace NadekoBot.Common.TypeReaders;
public sealed class ModuleTypeReader : NadekoTypeReader<ModuleInfo>
{
+1 -2
View File
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Db.Models;
using NadekoBot.Db.Models;
namespace NadekoBot.Services.Database.Models;
+1 -1
View File
@@ -6,7 +6,7 @@ global using NadekoBot;
global using NadekoBot.Services;
global using NadekoBot.Common;
global using NadekoBot.Common.Attributes;
// todo global using Nadekobot.Extensions;
global using NadekoBot.Extensions;
global using Discord;
global using Discord.Commands;
@@ -1,5 +1,4 @@
using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Administration.Services;
#if !GLOBAL_NADEKO
namespace NadekoBot.Modules.Administration
@@ -1,5 +1,4 @@
using NadekoBot.Common.TypeReaders;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using System.Globalization;
using System.Globalization;
namespace NadekoBot.Modules.Administration;
@@ -1,6 +1,5 @@
using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -1,6 +1,5 @@
using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Common;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Common.TypeReaders.Models;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Administration.Services;
using ITextChannel = Discord.ITextChannel;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using SixLabors.ImageSharp.PixelFormats;
using System.Net;
@@ -1,6 +1,5 @@
using System.Text;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -1,6 +1,4 @@
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration;
namespace NadekoBot.Modules.Administration;
public partial class Administration
{
@@ -1,7 +1,6 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Db;
namespace NadekoBot.Modules.Administration.Services;
@@ -3,7 +3,6 @@ using LinqToDB;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration.Services;
@@ -1,7 +1,6 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration.Services;
@@ -1,5 +1,4 @@
using NadekoBot.Common.Collections;
using NadekoBot.Extensions;
using NadekoBot.Db;
namespace NadekoBot.Modules.Administration.Services;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Services.Database.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
namespace NadekoBot.Modules.Administration.Services;
@@ -4,7 +4,6 @@ using LinqToDB;
using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Common.Collections;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration.Services;
@@ -3,7 +3,6 @@ using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Common;
namespace NadekoBot.Modules.Administration.Services;
@@ -1,6 +1,5 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Extensions;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
@@ -1,7 +1,6 @@
using System.Threading.Channels;
using NadekoBot.Modules.Administration.Common;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Db;
@@ -1,5 +1,4 @@
using NadekoBot.Common.Collections;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Administration.Services;
@@ -1,7 +1,6 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using LinqToDB;
using LinqToDB.EntityFrameworkCore;
using NadekoBot.Db;
@@ -1,6 +1,5 @@
using System.Collections.Immutable;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
@@ -2,7 +2,6 @@ using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
using NadekoBot.Modules.Permissions.Services;
using Newtonsoft.Json;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -2,7 +2,6 @@ using CommandLine;
using Humanizer.Localisation;
using NadekoBot.Common.TypeReaders.Models;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Permissions.Services;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Administration.Services;
namespace NadekoBot.Modules.Administration;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.CustomReactions.Services;
using NadekoBot.Modules.CustomReactions.Services;
namespace NadekoBot.Modules.CustomReactions;
@@ -1,5 +1,4 @@
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using System.Runtime.CompilerServices;
namespace NadekoBot.Modules.CustomReactions.Extensions;
@@ -1,6 +1,5 @@
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.CustomReactions.Extensions;
using NadekoBot.Modules.Permissions.Common;
using NadekoBot.Modules.Permissions.Services;
@@ -1,7 +1,6 @@
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common.AnimalRacing;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common.AnimalRacing.Exceptions;
using NadekoBot.Modules.Games.Services;
@@ -1,7 +1,6 @@
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common.Blackjack;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common.AnimalRacing.Exceptions;
using NadekoBot.Modules.Gambling.Common.AnimalRacing.Exceptions;
using NadekoBot.Modules.Games.Common;
namespace NadekoBot.Modules.Gambling.Common.AnimalRacing;
@@ -1,6 +1,4 @@
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling.Common;
namespace NadekoBot.Modules.Gambling.Common;
public class QuadDeck : Deck
{
@@ -1,6 +1,5 @@
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling.Common.Events;
@@ -1,6 +1,5 @@
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling.Common.Events;
@@ -1,5 +1,4 @@
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common.Connect4;
using NadekoBot.Modules.Gambling.Services;
using System.Text;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common.Events;
using NadekoBot.Services.Database.Models;
using NadekoBot.Modules.Gambling.Common;
@@ -1,4 +1,3 @@
using NadekoBot.Extensions;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
using System.Text.RegularExpressions;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Common;
using Image = SixLabors.ImageSharp.Image;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
@@ -1,5 +1,4 @@
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.PixelFormats;
@@ -1,6 +1,5 @@
using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Db.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using System.Globalization;
using System.Numerics;
@@ -1,4 +1,3 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common;
@@ -3,7 +3,6 @@ using NadekoBot.Common.Collections;
using NadekoBot.Services.Database;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling.Services;
@@ -1,7 +1,6 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using SixLabors.Fonts;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Drawing.Processing;
@@ -4,7 +4,6 @@ using NadekoBot.Modules.Gambling.Common;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Gambling;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using System.Text;
using System.Text;
using NadekoBot.Db.Models;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common;
@@ -1,5 +1,4 @@
using NadekoBot.Modules.Gambling.Common.Waifu;
using NadekoBot.Extensions;
using NadekoBot.Modules.Gambling.Services;
using NadekoBot.Modules.Gambling.Common;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using System.Collections.Immutable;
using System.Collections.Immutable;
using NadekoBot.Modules.Games.Common.Acrophobia;
using NadekoBot.Modules.Games.Services;
@@ -1,6 +1,5 @@
using System.Collections.Immutable;
using CommandLine;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Games.Common.Acrophobia;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using Newtonsoft.Json;
using Newtonsoft.Json;
namespace NadekoBot.Modules.Games.Common.ChatterBot;
@@ -2,7 +2,6 @@
using System.Diagnostics.CodeAnalysis;
using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Services;
namespace NadekoBot.Modules.Games.Hangman;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using System.Text;
using System.Text;
using CommandLine;
namespace NadekoBot.Modules.Games.Common;
@@ -1,5 +1,4 @@
using System.Text;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Games.Common.Trivia;
@@ -1,5 +1,4 @@
using System.Text.RegularExpressions;
using NadekoBot.Extensions;
// THANKS @ShoMinamimoto for suggestions and coding help
namespace NadekoBot.Modules.Games.Common.Trivia;
@@ -1,6 +1,4 @@
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Games.Common.Trivia;
namespace NadekoBot.Modules.Games.Common.Trivia;
public class TriviaQuestionPool
{
@@ -1,5 +1,4 @@
using System.Diagnostics;
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Services;
using CommandLine;
+1 -2
View File
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Services;
namespace NadekoBot.Modules.Games;
@@ -1,5 +1,4 @@
#nullable enable
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Hangman;
namespace NadekoBot.Modules.Games;
+1 -2
View File
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Modules.Games.Services;
using NadekoBot.Services.Database.Models;
using System.Text;
@@ -1,5 +1,4 @@
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using NadekoBot.Modules.Permissions.Common;
using NadekoBot.Modules.Permissions.Services;
using NadekoBot.Modules.Games.Common.ChatterBot;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Common.Acrophobia;
using NadekoBot.Modules.Games.Common.Nunchi;
using NadekoBot.Modules.Games.Common.Trivia;
@@ -3,7 +3,6 @@ using NadekoBot.Modules.Games.Common;
using NadekoBot.Common.Collections;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Games.Services;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Common;
using NadekoBot.Modules.Games.Services;
namespace NadekoBot.Modules.Games;
-1
View File
@@ -1,5 +1,4 @@
using NadekoBot.Modules.Help.Common;
using NadekoBot.Extensions;
using NadekoBot.Modules.Help.Services;
using NadekoBot.Modules.Permissions.Services;
using Newtonsoft.Json;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Common.ModuleBehaviors;
using CommandLine;
using NadekoBot.Modules.Administration.Services;
@@ -1,6 +1,4 @@
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music;
namespace NadekoBot.Modules.Music;
public static class MusicExtensions
{
@@ -1,5 +1,4 @@
using System.Text.RegularExpressions;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music.Resolvers;
@@ -1,7 +1,6 @@
#nullable enable
using System.Globalization;
using System.Text.RegularExpressions;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music;
-1
View File
@@ -1,5 +1,4 @@
using NadekoBot.Services.Database.Models;
using NadekoBot.Extensions;
using NadekoBot.Modules.Administration.Services;
using NadekoBot.Modules.Music.Services;
@@ -1,6 +1,5 @@
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
using NadekoBot.Modules.Music.Services;
namespace NadekoBot.Modules.Music;
@@ -2,7 +2,6 @@
using System.Diagnostics.CodeAnalysis;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Music.Services;
@@ -1,5 +1,4 @@
using System.Net.Http.Json;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Nsfw.Common;
@@ -1,5 +1,4 @@
using System.Net.Http.Json;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Nsfw.Common;
@@ -1,5 +1,4 @@
using System.Text.Json;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Nsfw.Common;
-1
View File
@@ -1,5 +1,4 @@
using NadekoBot.Common.Collections;
using NadekoBot.Extensions;
using NadekoBot.Modules.Searches.Common;
using Newtonsoft.Json.Linq;
@@ -1,5 +1,4 @@
using Microsoft.Extensions.Caching.Memory;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Nsfw.Common;
@@ -1,6 +1,5 @@
using Newtonsoft.Json.Linq;
using LinqToDB;
using NadekoBot.Extensions;
using NadekoBot.Modules.Searches.Common;
using Newtonsoft.Json;
using Booru = NadekoBot.Modules.Nsfw.Common.Booru;
@@ -1,7 +1,6 @@
using NadekoBot.Common.TypeReaders;
using NadekoBot.Services.Database.Models;
using NadekoBot.Modules.Permissions.Services;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Permissions;
@@ -1,5 +1,4 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Extensions;
using NadekoBot.Services.Database.Models;
using NadekoBot.Common.Collections;
using NadekoBot.Common.TypeReaders;
@@ -1,5 +1,4 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Extensions;
using NadekoBot.Common.Collections;
using NadekoBot.Modules.Permissions.Services;
using NadekoBot.Services.Database.Models;
@@ -1,5 +1,4 @@
using NadekoBot.Common.TypeReaders;
using NadekoBot.Extensions;
using NadekoBot.Modules.Permissions.Services;
namespace NadekoBot.Modules.Permissions;
@@ -1,6 +1,5 @@
using NadekoBot.Common.Collections;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
@@ -1,6 +1,5 @@
using Microsoft.EntityFrameworkCore;
using NadekoBot.Common.ModuleBehaviors;
using NadekoBot.Extensions;
using NadekoBot.Modules.Permissions.Common;
using NadekoBot.Services.Database.Models;
using NadekoBot.Db;
@@ -1,5 +1,4 @@
using AngleSharp;
using NadekoBot.Extensions;
using NadekoBot.Modules.Searches.Services;
using AngleSharp.Html.Dom;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using Newtonsoft.Json;
using Newtonsoft.Json;
namespace NadekoBot.Modules.Searches.Common;
@@ -1,5 +1,4 @@
using NadekoBot.Modules.Searches.Services;
using NadekoBot.Extensions;
namespace NadekoBot.Modules.Searches;
@@ -1,5 +1,4 @@
using NadekoBot.Extensions;
using NadekoBot.Modules.Searches.Services;
using NadekoBot.Modules.Searches.Services;
using System.Text.RegularExpressions;
namespace NadekoBot.Modules.Searches;
@@ -1,6 +1,5 @@
using System.Collections.Immutable;
using System.Text;
using NadekoBot.Extensions;
using Newtonsoft.Json;
namespace NadekoBot.Modules.Searches;

Some files were not shown because too many files have changed in this diff Show More