From 499c2a9a5f0205fe0f040077889876ae9d0621f9 Mon Sep 17 00:00:00 2001 From: Toastie Date: Sun, 7 Jul 2024 19:30:36 +1200 Subject: [PATCH] Updated Administration module --- .../Modules/Administration/Honeypot/HoneyPotService.cs | 5 ++--- .../Modules/Administration/Honeypot/HoneypotCommands.cs | 5 ++--- .../Modules/Administration/Honeypot/IHoneyPotService.cs | 5 ++--- .../Administration/ServerLog/DummyLogCommandService.cs | 2 +- .../Administration/ServerLog/ServerLogCommandService.cs | 4 ++-- 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/EllieBot/Modules/Administration/Honeypot/HoneyPotService.cs b/src/EllieBot/Modules/Administration/Honeypot/HoneyPotService.cs index 8108aad..8ff20ac 100644 --- a/src/EllieBot/Modules/Administration/Honeypot/HoneyPotService.cs +++ b/src/EllieBot/Modules/Administration/Honeypot/HoneyPotService.cs @@ -5,7 +5,7 @@ using EllieBot.Db.Models; using System.Threading.Channels; namespace EllieBot.Modules.Administration.Honeypot; -/* + public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoCommand, IEService { private readonly DbService _db; @@ -92,5 +92,4 @@ public sealed class HoneyPotService : IHoneyPotService, IReadyExecutor, IExecNoC await _punishments.Writer.WriteAsync(sgu); } } -} -*/ \ No newline at end of file +} \ No newline at end of file diff --git a/src/EllieBot/Modules/Administration/Honeypot/HoneypotCommands.cs b/src/EllieBot/Modules/Administration/Honeypot/HoneypotCommands.cs index 9a1f5b3..897d019 100644 --- a/src/EllieBot/Modules/Administration/Honeypot/HoneypotCommands.cs +++ b/src/EllieBot/Modules/Administration/Honeypot/HoneypotCommands.cs @@ -1,7 +1,7 @@ using EllieBot.Modules.Administration.Honeypot; namespace EllieBot.Modules.Administration; -/* + public partial class Administration { [Group] @@ -26,5 +26,4 @@ public partial class Administration await Response().Confirm(strs.honeypot_off).SendAsync(); } } -} -*/ \ No newline at end of file +} \ No newline at end of file diff --git a/src/EllieBot/Modules/Administration/Honeypot/IHoneyPotService.cs b/src/EllieBot/Modules/Administration/Honeypot/IHoneyPotService.cs index c64e7b9..1483590 100644 --- a/src/EllieBot/Modules/Administration/Honeypot/IHoneyPotService.cs +++ b/src/EllieBot/Modules/Administration/Honeypot/IHoneyPotService.cs @@ -1,7 +1,6 @@ namespace EllieBot.Modules.Administration.Honeypot; -/* + public interface IHoneyPotService { public Task ToggleHoneypotChannel(ulong guildId, ulong channelId); -} -*/ \ No newline at end of file +} \ No newline at end of file diff --git a/src/EllieBot/Modules/Administration/ServerLog/DummyLogCommandService.cs b/src/EllieBot/Modules/Administration/ServerLog/DummyLogCommandService.cs index aade00c..00576b7 100644 --- a/src/EllieBot/Modules/Administration/ServerLog/DummyLogCommandService.cs +++ b/src/EllieBot/Modules/Administration/ServerLog/DummyLogCommandService.cs @@ -3,7 +3,7 @@ namespace EllieBot.Modules.Administration; public sealed class DummyLogCommandService : ILogCommandService -#if GLOBAL_NADEKO +#if GLOBAL_ELLIE , IEService #endif { diff --git a/src/EllieBot/Modules/Administration/ServerLog/ServerLogCommandService.cs b/src/EllieBot/Modules/Administration/ServerLog/ServerLogCommandService.cs index 232f90d..6ea5345 100644 --- a/src/EllieBot/Modules/Administration/ServerLog/ServerLogCommandService.cs +++ b/src/EllieBot/Modules/Administration/ServerLog/ServerLogCommandService.cs @@ -8,8 +8,8 @@ using EllieBot.Db.Models; namespace EllieBot.Modules.Administration; public sealed class LogCommandService : ILogCommandService, IReadyExecutor -#if !GLOBAL_NADEKO - , IEService // don't load this service on global nadeko +#if !GLOBAL_ELLIE + , IEService // don't load this service on global ellie #endif { public ConcurrentDictionary GuildLogSettings { get; }