mirror of
https://github.com/Jetsparrow/antiantiswearingbot.git
synced 2026-01-20 23: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
|
||||
{
|
||||
|
||||
@ -4,7 +4,7 @@ using Microsoft.Extensions.Options;
|
||||
|
||||
using Xunit;
|
||||
|
||||
namespace AntiAntiSwearingBot.Tests;
|
||||
namespace Jetsparrow.Aasb.Tests;
|
||||
|
||||
public class DetectTests
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
using Xunit;
|
||||
|
||||
namespace AntiAntiSwearingBot.Tests;
|
||||
namespace Jetsparrow.Aasb.Tests;
|
||||
|
||||
public class FilterTests
|
||||
{
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
using Telegram.Bot.Types;
|
||||
using AntiAntiSwearingBot.Commands;
|
||||
using Jetsparrow.Aasb.Commands;
|
||||
|
||||
namespace AntiAntiSwearingBot;
|
||||
namespace Jetsparrow.Aasb;
|
||||
|
||||
public interface IChatCommand
|
||||
{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace AntiAntiSwearingBot.Commands;
|
||||
namespace Jetsparrow.Aasb.Commands;
|
||||
|
||||
public class CommandString
|
||||
{
|
||||
|
||||
@ -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; }
|
||||
|
||||
@ -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; }
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace AntiAntiSwearingBot;
|
||||
namespace Jetsparrow.Aasb;
|
||||
|
||||
public class ServiceSettings
|
||||
{
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
namespace AntiAntiSwearingBot;
|
||||
namespace Jetsparrow.Aasb;
|
||||
public static class IListExtensions
|
||||
{
|
||||
public static void Move<T>(this IList<T> list, int from, int to)
|
||||
|
||||
@ -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<TService>(this IServiceCollection isc) where TService : class, IHostedService
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using System.Threading;
|
||||
|
||||
namespace AntiAntiSwearingBot;
|
||||
namespace Jetsparrow.Aasb;
|
||||
|
||||
public readonly ref struct ReadLockToken
|
||||
{
|
||||
|
||||
@ -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); }
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"AntiAntiSwearingBot": {
|
||||
"Jetsparrow.Aasb": {
|
||||
"commandName": "Project",
|
||||
"launchBrowser": false,
|
||||
"environmentVariables": {
|
||||
|
||||
@ -4,7 +4,7 @@ using System.Threading.Tasks;
|
||||
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace AntiAntiSwearingBot;
|
||||
namespace Jetsparrow.Aasb;
|
||||
public class SearchDictionary : BackgroundService
|
||||
{
|
||||
public SearchDictionary(IOptionsMonitor<SearchDictionarySettings> cfg)
|
||||
|
||||
@ -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; }
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace AntiAntiSwearingBot;
|
||||
namespace Jetsparrow.Aasb;
|
||||
|
||||
public class Unbleeper
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user