From d31cf1bfaeff6b7c3d7a0465300822771b222d8e Mon Sep 17 00:00:00 2001 From: Toastie Date: Sat, 29 Jun 2024 17:50:59 +1200 Subject: [PATCH] Updated Administration module --- .../ServerLog/DummyLogCommandService.cs | 2 +- .../ServerLog/ServerLogCommandService.cs | 4 ++-- .../Administration/Ticket/TicketCommands.cs | 14 ++++++++++++++ .../Administration/UserPunish/UserPunishService.cs | 2 +- 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs diff --git a/src/EllieBot/Modules/Administration/ServerLog/DummyLogCommandService.cs b/src/EllieBot/Modules/Administration/ServerLog/DummyLogCommandService.cs index 00576b7..aade00c 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_ELLIE +#if GLOBAL_NADEKO , IEService #endif { diff --git a/src/EllieBot/Modules/Administration/ServerLog/ServerLogCommandService.cs b/src/EllieBot/Modules/Administration/ServerLog/ServerLogCommandService.cs index 6ea5345..232f90d 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_ELLIE - , IEService // don't load this service on global ellie +#if !GLOBAL_NADEKO + , IEService // don't load this service on global nadeko #endif { public ConcurrentDictionary GuildLogSettings { get; } diff --git a/src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs b/src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs new file mode 100644 index 0000000..67f5ca6 --- /dev/null +++ b/src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs @@ -0,0 +1,14 @@ +// namespace EllieBot.Modules.Administration; +// +// public partial class Administration +// { +// [Group] +// public partial class TicketCommands : EllieModule +// { +// [Cmd] +// public async Task Ticket() +// { +// +// } +// } +// } \ No newline at end of file diff --git a/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs b/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs index cdc9900..5847bea 100644 --- a/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs +++ b/src/EllieBot/Modules/Administration/UserPunish/UserPunishService.cs @@ -228,7 +228,7 @@ public class UserPunishService : IEService, IReadyExecutor case PunishmentAction.RemoveRoles: return botUser.GuildPermissions.ManageRoles; case PunishmentAction.ChatMute: - return botUser.GuildPermissions.ManageRoles; // adds ellie-mute role + return botUser.GuildPermissions.ManageRoles; // adds nadeko-mute role case PunishmentAction.VoiceMute: return botUser.GuildPermissions.MuteMembers; case PunishmentAction.AddRole: