mirror of
https://github.com/Jetsparrow/antiantiswearingbot.git
synced 2026-01-21 07:16:08 +03:00
Update namespaces
This commit is contained in:
parent
98f33bba8b
commit
16c3544526
@ -1,4 +1,4 @@
|
|||||||
namespace AntiAntiSwearingBot.Tests;
|
namespace Jetsparrow.Aasb.Tests;
|
||||||
|
|
||||||
public static class DefaultSettings
|
public static class DefaultSettings
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace AntiAntiSwearingBot.Tests;
|
namespace Jetsparrow.Aasb.Tests;
|
||||||
|
|
||||||
public class FilterTests
|
public class FilterTests
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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; }
|
||||||
|
|||||||
@ -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; }
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
namespace AntiAntiSwearingBot;
|
namespace Jetsparrow.Aasb;
|
||||||
|
|
||||||
public class ServiceSettings
|
public class ServiceSettings
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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); }
|
||||||
|
|||||||
@ -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();
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"AntiAntiSwearingBot": {
|
"Jetsparrow.Aasb": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"launchBrowser": false,
|
"launchBrowser": false,
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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; }
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace AntiAntiSwearingBot;
|
namespace Jetsparrow.Aasb;
|
||||||
|
|
||||||
public class Unbleeper
|
public class Unbleeper
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user