Update namespaces

This commit is contained in:
jetsparrow 2023-03-14 00:24:14 +03:00
parent 98f33bba8b
commit 16c3544526
18 changed files with 20 additions and 20 deletions

View File

@ -1,4 +1,4 @@
namespace AntiAntiSwearingBot.Tests; namespace Jetsparrow.Aasb.Tests;
public static class DefaultSettings public static class DefaultSettings
{ {

View File

@ -4,7 +4,7 @@ using Microsoft.Extensions.Options;
using Xunit; using Xunit;
namespace AntiAntiSwearingBot.Tests; namespace Jetsparrow.Aasb.Tests;
public class DetectTests public class DetectTests
{ {

View File

@ -2,7 +2,7 @@
using Xunit; using Xunit;
namespace AntiAntiSwearingBot.Tests; namespace Jetsparrow.Aasb.Tests;
public class FilterTests public class FilterTests
{ {

View File

@ -4,11 +4,11 @@ using Telegram.Bot;
using Telegram.Bot.Extensions.Polling; using Telegram.Bot.Extensions.Polling;
using Telegram.Bot.Types; using Telegram.Bot.Types;
using Telegram.Bot.Types.Enums; using Telegram.Bot.Types.Enums;
using AntiAntiSwearingBot.Commands; using Jetsparrow.Aasb.Commands;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public class Aasb : IHostedService public class Aasb : IHostedService
{ {

View File

@ -1,7 +1,7 @@
using Telegram.Bot.Types; using Telegram.Bot.Types;
using AntiAntiSwearingBot.Commands; using Jetsparrow.Aasb.Commands;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public interface IChatCommand public interface IChatCommand
{ {

View File

@ -1,6 +1,6 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace AntiAntiSwearingBot.Commands; namespace Jetsparrow.Aasb.Commands;
public class CommandString public class CommandString
{ {

View File

@ -1,7 +1,7 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Telegram.Bot.Types; using Telegram.Bot.Types;
namespace AntiAntiSwearingBot.Commands; namespace Jetsparrow.Aasb.Commands;
public class LearnCommand : IChatCommand public class LearnCommand : IChatCommand
{ {
SearchDictionary Dict { get; } SearchDictionary Dict { get; }

View File

@ -1,7 +1,7 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using Telegram.Bot.Types; using Telegram.Bot.Types;
namespace AntiAntiSwearingBot.Commands; namespace Jetsparrow.Aasb.Commands;
public class UnlearnCommand : IChatCommand public class UnlearnCommand : IChatCommand
{ {
SearchDictionary Dict { get; } SearchDictionary Dict { get; }

View File

@ -1,4 +1,4 @@
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public class ServiceSettings public class ServiceSettings
{ {

View File

@ -1,4 +1,4 @@
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public static class IListExtensions public static class IListExtensions
{ {
public static void Move<T>(this IList<T> list, int from, int to) public static void Move<T>(this IList<T> list, int from, int to)

View File

@ -1,7 +1,7 @@
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public static class IServiceCollectionExtensions public static class IServiceCollectionExtensions
{ {
public static IServiceCollection AddHostedSingleton<TService>(this IServiceCollection isc) where TService : class, IHostedService public static IServiceCollection AddHostedSingleton<TService>(this IServiceCollection isc) where TService : class, IHostedService

View File

@ -1,6 +1,6 @@
using System.Threading; using System.Threading;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public readonly ref struct ReadLockToken public readonly ref struct ReadLockToken
{ {

View File

@ -1,6 +1,6 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public static class Language public static class Language
{ {
static int min(int a, int b, int c) { return Math.Min(Math.Min(a, b), c); } static int min(int a, int b, int c) { return Math.Min(Math.Min(a, b), c); }

View File

@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using AntiAntiSwearingBot; using Jetsparrow.Aasb;
var builder = WebApplication.CreateBuilder(); var builder = WebApplication.CreateBuilder();

View File

@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
}, },
"AntiAntiSwearingBot": { "Jetsparrow.Aasb": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": false, "launchBrowser": false,
"environmentVariables": { "environmentVariables": {

View File

@ -4,7 +4,7 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public class SearchDictionary : BackgroundService public class SearchDictionary : BackgroundService
{ {
public SearchDictionary(IOptionsMonitor<SearchDictionarySettings> cfg) public SearchDictionary(IOptionsMonitor<SearchDictionarySettings> cfg)

View File

@ -3,7 +3,7 @@ using System.Threading.Tasks;
using Microsoft.Extensions.Diagnostics.HealthChecks; using Microsoft.Extensions.Diagnostics.HealthChecks;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public class StartupHealthCheck : IHealthCheck public class StartupHealthCheck : IHealthCheck
{ {
Aasb Bot { get; } Aasb Bot { get; }

View File

@ -1,6 +1,6 @@
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
namespace AntiAntiSwearingBot; namespace Jetsparrow.Aasb;
public class Unbleeper public class Unbleeper
{ {