From 16c35445265ac67cd3d199ed48b4785f2c6ab2be Mon Sep 17 00:00:00 2001 From: jetsparrow Date: Tue, 14 Mar 2023 00:24:14 +0300 Subject: [PATCH] Update namespaces --- Jetsparrow.Aasb.Tests/DefaultSettings.cs | 2 +- Jetsparrow.Aasb.Tests/DetectTests.cs | 2 +- Jetsparrow.Aasb.Tests/FilterTests.cs | 2 +- Jetsparrow.Aasb/Aasb.cs | 4 ++-- Jetsparrow.Aasb/CommandRouter.cs | 4 ++-- Jetsparrow.Aasb/Commands/CommandString.cs | 2 +- Jetsparrow.Aasb/Commands/LearnCommand.cs | 2 +- Jetsparrow.Aasb/Commands/UnlearnCommand.cs | 2 +- Jetsparrow.Aasb/Config.cs | 2 +- Jetsparrow.Aasb/Extensions/IListExtensions.cs | 2 +- Jetsparrow.Aasb/Extensions/IServiceCollectionExtensions.cs | 2 +- Jetsparrow.Aasb/Extensions/ReaderWriterLockSlimExtensions.cs | 2 +- Jetsparrow.Aasb/Language.cs | 2 +- Jetsparrow.Aasb/Program.cs | 2 +- Jetsparrow.Aasb/Properties/launchSettings.json | 2 +- Jetsparrow.Aasb/SearchDictionary.cs | 2 +- Jetsparrow.Aasb/StartupHealthCheck.cs | 2 +- Jetsparrow.Aasb/Unbleeper.cs | 2 +- 18 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Jetsparrow.Aasb.Tests/DefaultSettings.cs b/Jetsparrow.Aasb.Tests/DefaultSettings.cs index dc91df3..c716ce1 100644 --- a/Jetsparrow.Aasb.Tests/DefaultSettings.cs +++ b/Jetsparrow.Aasb.Tests/DefaultSettings.cs @@ -1,4 +1,4 @@ -namespace AntiAntiSwearingBot.Tests; +namespace Jetsparrow.Aasb.Tests; public static class DefaultSettings { diff --git a/Jetsparrow.Aasb.Tests/DetectTests.cs b/Jetsparrow.Aasb.Tests/DetectTests.cs index 3871496..163018b 100644 --- a/Jetsparrow.Aasb.Tests/DetectTests.cs +++ b/Jetsparrow.Aasb.Tests/DetectTests.cs @@ -4,7 +4,7 @@ using Microsoft.Extensions.Options; using Xunit; -namespace AntiAntiSwearingBot.Tests; +namespace Jetsparrow.Aasb.Tests; public class DetectTests { diff --git a/Jetsparrow.Aasb.Tests/FilterTests.cs b/Jetsparrow.Aasb.Tests/FilterTests.cs index 5806679..b3290e7 100644 --- a/Jetsparrow.Aasb.Tests/FilterTests.cs +++ b/Jetsparrow.Aasb.Tests/FilterTests.cs @@ -2,7 +2,7 @@ using Xunit; -namespace AntiAntiSwearingBot.Tests; +namespace Jetsparrow.Aasb.Tests; public class FilterTests { diff --git a/Jetsparrow.Aasb/Aasb.cs b/Jetsparrow.Aasb/Aasb.cs index 1d96d27..f3e0c04 100644 --- a/Jetsparrow.Aasb/Aasb.cs +++ b/Jetsparrow.Aasb/Aasb.cs @@ -4,11 +4,11 @@ using Telegram.Bot; using Telegram.Bot.Extensions.Polling; using Telegram.Bot.Types; using Telegram.Bot.Types.Enums; -using AntiAntiSwearingBot.Commands; +using Jetsparrow.Aasb.Commands; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public class Aasb : IHostedService { diff --git a/Jetsparrow.Aasb/CommandRouter.cs b/Jetsparrow.Aasb/CommandRouter.cs index e8a5353..9bb2c2c 100644 --- a/Jetsparrow.Aasb/CommandRouter.cs +++ b/Jetsparrow.Aasb/CommandRouter.cs @@ -1,7 +1,7 @@ using Telegram.Bot.Types; -using AntiAntiSwearingBot.Commands; +using Jetsparrow.Aasb.Commands; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public interface IChatCommand { diff --git a/Jetsparrow.Aasb/Commands/CommandString.cs b/Jetsparrow.Aasb/Commands/CommandString.cs index 5603f33..0a7eb72 100644 --- a/Jetsparrow.Aasb/Commands/CommandString.cs +++ b/Jetsparrow.Aasb/Commands/CommandString.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace AntiAntiSwearingBot.Commands; +namespace Jetsparrow.Aasb.Commands; public class CommandString { diff --git a/Jetsparrow.Aasb/Commands/LearnCommand.cs b/Jetsparrow.Aasb/Commands/LearnCommand.cs index 5edb980..3afc5d8 100644 --- a/Jetsparrow.Aasb/Commands/LearnCommand.cs +++ b/Jetsparrow.Aasb/Commands/LearnCommand.cs @@ -1,7 +1,7 @@ using System.Text.RegularExpressions; using Telegram.Bot.Types; -namespace AntiAntiSwearingBot.Commands; +namespace Jetsparrow.Aasb.Commands; public class LearnCommand : IChatCommand { SearchDictionary Dict { get; } diff --git a/Jetsparrow.Aasb/Commands/UnlearnCommand.cs b/Jetsparrow.Aasb/Commands/UnlearnCommand.cs index f699649..1aeb188 100644 --- a/Jetsparrow.Aasb/Commands/UnlearnCommand.cs +++ b/Jetsparrow.Aasb/Commands/UnlearnCommand.cs @@ -1,7 +1,7 @@ using System.Text.RegularExpressions; using Telegram.Bot.Types; -namespace AntiAntiSwearingBot.Commands; +namespace Jetsparrow.Aasb.Commands; public class UnlearnCommand : IChatCommand { SearchDictionary Dict { get; } diff --git a/Jetsparrow.Aasb/Config.cs b/Jetsparrow.Aasb/Config.cs index 86aa3a2..8cd63b0 100644 --- a/Jetsparrow.Aasb/Config.cs +++ b/Jetsparrow.Aasb/Config.cs @@ -1,4 +1,4 @@ -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public class ServiceSettings { diff --git a/Jetsparrow.Aasb/Extensions/IListExtensions.cs b/Jetsparrow.Aasb/Extensions/IListExtensions.cs index 0a5b439..cef67e5 100644 --- a/Jetsparrow.Aasb/Extensions/IListExtensions.cs +++ b/Jetsparrow.Aasb/Extensions/IListExtensions.cs @@ -1,4 +1,4 @@ -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public static class IListExtensions { public static void Move(this IList list, int from, int to) diff --git a/Jetsparrow.Aasb/Extensions/IServiceCollectionExtensions.cs b/Jetsparrow.Aasb/Extensions/IServiceCollectionExtensions.cs index 4b416b9..36c3e0c 100644 --- a/Jetsparrow.Aasb/Extensions/IServiceCollectionExtensions.cs +++ b/Jetsparrow.Aasb/Extensions/IServiceCollectionExtensions.cs @@ -1,7 +1,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public static class IServiceCollectionExtensions { public static IServiceCollection AddHostedSingleton(this IServiceCollection isc) where TService : class, IHostedService diff --git a/Jetsparrow.Aasb/Extensions/ReaderWriterLockSlimExtensions.cs b/Jetsparrow.Aasb/Extensions/ReaderWriterLockSlimExtensions.cs index 7c4d57b..00e80ff 100644 --- a/Jetsparrow.Aasb/Extensions/ReaderWriterLockSlimExtensions.cs +++ b/Jetsparrow.Aasb/Extensions/ReaderWriterLockSlimExtensions.cs @@ -1,6 +1,6 @@ using System.Threading; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public readonly ref struct ReadLockToken { diff --git a/Jetsparrow.Aasb/Language.cs b/Jetsparrow.Aasb/Language.cs index 2d1d986..ead61d0 100644 --- a/Jetsparrow.Aasb/Language.cs +++ b/Jetsparrow.Aasb/Language.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public static class Language { static int min(int a, int b, int c) { return Math.Min(Math.Min(a, b), c); } diff --git a/Jetsparrow.Aasb/Program.cs b/Jetsparrow.Aasb/Program.cs index 0725ca2..0e079c0 100644 --- a/Jetsparrow.Aasb/Program.cs +++ b/Jetsparrow.Aasb/Program.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using AntiAntiSwearingBot; +using Jetsparrow.Aasb; var builder = WebApplication.CreateBuilder(); diff --git a/Jetsparrow.Aasb/Properties/launchSettings.json b/Jetsparrow.Aasb/Properties/launchSettings.json index cca1cfb..4470b63 100644 --- a/Jetsparrow.Aasb/Properties/launchSettings.json +++ b/Jetsparrow.Aasb/Properties/launchSettings.json @@ -15,7 +15,7 @@ "ASPNETCORE_ENVIRONMENT": "Development" } }, - "AntiAntiSwearingBot": { + "Jetsparrow.Aasb": { "commandName": "Project", "launchBrowser": false, "environmentVariables": { diff --git a/Jetsparrow.Aasb/SearchDictionary.cs b/Jetsparrow.Aasb/SearchDictionary.cs index 02d778c..68d80f0 100644 --- a/Jetsparrow.Aasb/SearchDictionary.cs +++ b/Jetsparrow.Aasb/SearchDictionary.cs @@ -4,7 +4,7 @@ using System.Threading.Tasks; using Microsoft.Extensions.Hosting; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public class SearchDictionary : BackgroundService { public SearchDictionary(IOptionsMonitor cfg) diff --git a/Jetsparrow.Aasb/StartupHealthCheck.cs b/Jetsparrow.Aasb/StartupHealthCheck.cs index 8936eba..62c9958 100644 --- a/Jetsparrow.Aasb/StartupHealthCheck.cs +++ b/Jetsparrow.Aasb/StartupHealthCheck.cs @@ -3,7 +3,7 @@ using System.Threading.Tasks; using Microsoft.Extensions.Diagnostics.HealthChecks; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public class StartupHealthCheck : IHealthCheck { Aasb Bot { get; } diff --git a/Jetsparrow.Aasb/Unbleeper.cs b/Jetsparrow.Aasb/Unbleeper.cs index 49d95e6..ab8e02c 100644 --- a/Jetsparrow.Aasb/Unbleeper.cs +++ b/Jetsparrow.Aasb/Unbleeper.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace AntiAntiSwearingBot; +namespace Jetsparrow.Aasb; public class Unbleeper {