From 12912d464b53dc105c4cf579693ceaad34839ed7 Mon Sep 17 00:00:00 2001 From: 13xforever Date: Mon, 24 Mar 2025 20:38:21 +0500 Subject: [PATCH] clean up usings --- .../ProductCodeAutoCompleteProvider.cs | 1 - CompatBot/Commands/BotStatus.cs | 1 - CompatBot/Commands/ContentFilters.cs | 7 ------- CompatBot/Commands/Explain.cs | 5 ----- CompatBot/Commands/Sudo.Fix.cs | 1 - CompatBot/EventHandlers/BotReactionsHandler.cs | 2 -- CompatBot/EventHandlers/GlobalMessageCache.cs | 4 +--- CompatBot/EventHandlers/IsTheGamePlayableHandler.cs | 4 +--- CompatBot/EventHandlers/LogAsTextMonitor.cs | 2 -- CompatBot/EventHandlers/LogParsingHandler.cs | 1 - CompatBot/EventHandlers/PostLogHelpHandler.cs | 2 -- CompatBot/EventHandlers/ProductCodeLookup.cs | 2 -- CompatBot/EventHandlers/Starbucks.cs | 3 +-- CompatBot/Utils/Extensions/CommandContextExtensions.cs | 2 -- .../LogParserResultFormatter.GeneralNotesSection.cs | 1 - CompatBot/Watchdog.cs | 1 - 16 files changed, 3 insertions(+), 36 deletions(-) diff --git a/CompatBot/Commands/AutoCompleteProviders/ProductCodeAutoCompleteProvider.cs b/CompatBot/Commands/AutoCompleteProviders/ProductCodeAutoCompleteProvider.cs index 259ed98e..9732216d 100644 --- a/CompatBot/Commands/AutoCompleteProviders/ProductCodeAutoCompleteProvider.cs +++ b/CompatBot/Commands/AutoCompleteProviders/ProductCodeAutoCompleteProvider.cs @@ -1,7 +1,6 @@ using CompatBot.Database; using CompatBot.Database.Providers; using Microsoft.EntityFrameworkCore; -using Microsoft.VisualStudio.Services.Common; namespace CompatBot.Commands.AutoCompleteProviders; diff --git a/CompatBot/Commands/BotStatus.cs b/CompatBot/Commands/BotStatus.cs index 169f4343..887bfb24 100644 --- a/CompatBot/Commands/BotStatus.cs +++ b/CompatBot/Commands/BotStatus.cs @@ -1,7 +1,6 @@ using System.Runtime.InteropServices; using CompatApiClient; using CompatApiClient.Utils; -using CompatBot.Commands.Checks; using CompatBot.Database; using CompatBot.Database.Providers; using CompatBot.EventHandlers; diff --git a/CompatBot/Commands/ContentFilters.cs b/CompatBot/Commands/ContentFilters.cs index cb600dc7..c0fbdc7b 100644 --- a/CompatBot/Commands/ContentFilters.cs +++ b/CompatBot/Commands/ContentFilters.cs @@ -1,19 +1,12 @@ using System.IO; -using System.IO.Compression; -using System.Net.Http; using System.Text.RegularExpressions; -using System.Xml.Linq; -using CompatApiClient.Compression; using CompatApiClient.Utils; using CompatBot.Commands.AutoCompleteProviders; using CompatBot.Commands.ChoiceProviders; using CompatBot.Database; using CompatBot.Database.Providers; using CompatBot.Utils.Extensions; -using DSharpPlus.Commands.Processors.SlashCommands.ArgumentModifiers; -using DSharpPlus.Interactivity; using Microsoft.EntityFrameworkCore; -using org.mariuszgromada.math.mxparser.parsertokens; using Exception = System.Exception; namespace CompatBot.Commands; diff --git a/CompatBot/Commands/Explain.cs b/CompatBot/Commands/Explain.cs index c2de255c..90eb6c11 100644 --- a/CompatBot/Commands/Explain.cs +++ b/CompatBot/Commands/Explain.cs @@ -5,14 +5,9 @@ using System.Runtime.InteropServices; using CompatApiClient.Compression; using CompatApiClient.Utils; using CompatBot.Commands.AutoCompleteProviders; -using CompatBot.Commands.Checks; using CompatBot.Database; using CompatBot.Database.Providers; -using CompatBot.EventHandlers; -using DSharpPlus.Commands.Converters; -using DSharpPlus.Commands.Processors.MessageCommands; using Microsoft.EntityFrameworkCore; -using NLog.LayoutRenderers; namespace CompatBot.Commands; diff --git a/CompatBot/Commands/Sudo.Fix.cs b/CompatBot/Commands/Sudo.Fix.cs index d9b803d6..40ae4d71 100644 --- a/CompatBot/Commands/Sudo.Fix.cs +++ b/CompatBot/Commands/Sudo.Fix.cs @@ -1,5 +1,4 @@ using System.Text.RegularExpressions; -using CompatBot.Commands.Converters; using CompatBot.Database; using CompatBot.Database.Providers; using DSharpPlus.Commands.Processors.TextCommands; diff --git a/CompatBot/EventHandlers/BotReactionsHandler.cs b/CompatBot/EventHandlers/BotReactionsHandler.cs index 6d5bd4dc..e9a40703 100644 --- a/CompatBot/EventHandlers/BotReactionsHandler.cs +++ b/CompatBot/EventHandlers/BotReactionsHandler.cs @@ -1,6 +1,4 @@ using System.Text.RegularExpressions; -using CompatBot.Commands.Attributes; -using CompatBot.Commands.Checks; using CompatBot.Database; using NReco.Text; #if DEBUG diff --git a/CompatBot/EventHandlers/GlobalMessageCache.cs b/CompatBot/EventHandlers/GlobalMessageCache.cs index 8ce900fd..c9f0b371 100644 --- a/CompatBot/EventHandlers/GlobalMessageCache.cs +++ b/CompatBot/EventHandlers/GlobalMessageCache.cs @@ -1,6 +1,4 @@ -using System.Linq; -using System.Linq.Expressions; -using System.Collections.Concurrent; +using System.Collections.Concurrent; using Microsoft.VisualStudio.Services.Common; namespace CompatBot.EventHandlers; diff --git a/CompatBot/EventHandlers/IsTheGamePlayableHandler.cs b/CompatBot/EventHandlers/IsTheGamePlayableHandler.cs index 62024875..0c7c6cb4 100644 --- a/CompatBot/EventHandlers/IsTheGamePlayableHandler.cs +++ b/CompatBot/EventHandlers/IsTheGamePlayableHandler.cs @@ -4,8 +4,6 @@ using CompatApiClient; using CompatApiClient.POCOs; using CompatApiClient.Utils; using CompatBot.Commands; -using CompatBot.Commands.Attributes; -using CompatBot.Commands.Checks; using CompatBot.Database.Providers; using CompatBot.Utils.ResultFormatters; @@ -31,7 +29,7 @@ internal static partial class IsTheGamePlayableHandler #if !DEBUG if (!(args.Channel.Id == Config.BotGeneralChannelId - || LimitedToSpecificChannelsCheck.IsHelpChannel(args.Channel))) + || args.Channel.IsHelpChannel())) return; if (CooldownBuckets.TryGetValue(args.Channel.Id, out var lastCheck) diff --git a/CompatBot/EventHandlers/LogAsTextMonitor.cs b/CompatBot/EventHandlers/LogAsTextMonitor.cs index 912f47fb..e7fdb902 100644 --- a/CompatBot/EventHandlers/LogAsTextMonitor.cs +++ b/CompatBot/EventHandlers/LogAsTextMonitor.cs @@ -1,6 +1,4 @@ using System.Text.RegularExpressions; -using CompatBot.Commands.Attributes; -using CompatBot.Commands.Checks; namespace CompatBot.EventHandlers; diff --git a/CompatBot/EventHandlers/LogParsingHandler.cs b/CompatBot/EventHandlers/LogParsingHandler.cs index 2b98980c..c5c3afbf 100644 --- a/CompatBot/EventHandlers/LogParsingHandler.cs +++ b/CompatBot/EventHandlers/LogParsingHandler.cs @@ -4,7 +4,6 @@ using System.IO.Pipelines; using System.Net; using CompatApiClient.Utils; using CompatBot.Commands; -using CompatBot.Commands.Attributes; using CompatBot.Commands.Checks; using CompatBot.Database; using CompatBot.Database.Providers; diff --git a/CompatBot/EventHandlers/PostLogHelpHandler.cs b/CompatBot/EventHandlers/PostLogHelpHandler.cs index 0b0e1721..2078eabf 100644 --- a/CompatBot/EventHandlers/PostLogHelpHandler.cs +++ b/CompatBot/EventHandlers/PostLogHelpHandler.cs @@ -1,6 +1,4 @@ using System.Text.RegularExpressions; -using CompatBot.Commands.Attributes; -using CompatBot.Commands.Checks; using CompatBot.Database; using Microsoft.EntityFrameworkCore; diff --git a/CompatBot/EventHandlers/ProductCodeLookup.cs b/CompatBot/EventHandlers/ProductCodeLookup.cs index 1232b2f5..dcd51fd0 100644 --- a/CompatBot/EventHandlers/ProductCodeLookup.cs +++ b/CompatBot/EventHandlers/ProductCodeLookup.cs @@ -1,8 +1,6 @@ using System.Text.RegularExpressions; using CompatApiClient; using CompatApiClient.POCOs; -using CompatBot.Commands.Attributes; -using CompatBot.Commands.Checks; using CompatBot.Database.Providers; using CompatBot.Utils.ResultFormatters; diff --git a/CompatBot/EventHandlers/Starbucks.cs b/CompatBot/EventHandlers/Starbucks.cs index 2379097b..e028fab0 100644 --- a/CompatBot/EventHandlers/Starbucks.cs +++ b/CompatBot/EventHandlers/Starbucks.cs @@ -1,5 +1,4 @@ -using CompatBot.Commands; -using CompatBot.Utils.Extensions; +using CompatBot.Utils.Extensions; namespace CompatBot.EventHandlers; diff --git a/CompatBot/Utils/Extensions/CommandContextExtensions.cs b/CompatBot/Utils/Extensions/CommandContextExtensions.cs index fc91523b..101d2a4f 100644 --- a/CompatBot/Utils/Extensions/CommandContextExtensions.cs +++ b/CompatBot/Utils/Extensions/CommandContextExtensions.cs @@ -1,6 +1,4 @@ using System.Text.RegularExpressions; -using CompatBot.Commands.Attributes; -using CompatBot.Commands.Checks; using DSharpPlus.Commands.Converters; using DSharpPlus.Commands.Processors.TextCommands; using DSharpPlus.Commands.Processors.TextCommands.Parsing; diff --git a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs index 01718bba..512d438e 100644 --- a/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs +++ b/CompatBot/Utils/ResultFormatters/LogParserResultFormatter.GeneralNotesSection.cs @@ -1,5 +1,4 @@ using System.Collections.Specialized; -using System.ComponentModel; using System.Globalization; using System.IO; using System.Runtime.InteropServices; diff --git a/CompatBot/Watchdog.cs b/CompatBot/Watchdog.cs index 16d5973d..e2c2e1ef 100644 --- a/CompatBot/Watchdog.cs +++ b/CompatBot/Watchdog.cs @@ -1,7 +1,6 @@ using System.Collections.Concurrent; using System.Diagnostics; using CompatBot.Commands; -using CompatBot.Database.Providers; using CompatBot.EventHandlers; using Microsoft.ApplicationInsights; using NLog;