Updated Administration module
This commit is contained in:
parent
c5cd772126
commit
d31cf1bfae
4 changed files with 18 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
namespace EllieBot.Modules.Administration;
|
namespace EllieBot.Modules.Administration;
|
||||||
|
|
||||||
public sealed class DummyLogCommandService : ILogCommandService
|
public sealed class DummyLogCommandService : ILogCommandService
|
||||||
#if GLOBAL_ELLIE
|
#if GLOBAL_NADEKO
|
||||||
, IEService
|
, IEService
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,8 +8,8 @@ using EllieBot.Db.Models;
|
||||||
namespace EllieBot.Modules.Administration;
|
namespace EllieBot.Modules.Administration;
|
||||||
|
|
||||||
public sealed class LogCommandService : ILogCommandService, IReadyExecutor
|
public sealed class LogCommandService : ILogCommandService, IReadyExecutor
|
||||||
#if !GLOBAL_ELLIE
|
#if !GLOBAL_NADEKO
|
||||||
, IEService // don't load this service on global ellie
|
, IEService // don't load this service on global nadeko
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
public ConcurrentDictionary<ulong, LogSetting> GuildLogSettings { get; }
|
public ConcurrentDictionary<ulong, LogSetting> GuildLogSettings { get; }
|
||||||
|
|
14
src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs
Normal file
14
src/EllieBot/Modules/Administration/Ticket/TicketCommands.cs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
// namespace EllieBot.Modules.Administration;
|
||||||
|
//
|
||||||
|
// public partial class Administration
|
||||||
|
// {
|
||||||
|
// [Group]
|
||||||
|
// public partial class TicketCommands : EllieModule
|
||||||
|
// {
|
||||||
|
// [Cmd]
|
||||||
|
// public async Task Ticket()
|
||||||
|
// {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
|
@ -228,7 +228,7 @@ public class UserPunishService : IEService, IReadyExecutor
|
||||||
case PunishmentAction.RemoveRoles:
|
case PunishmentAction.RemoveRoles:
|
||||||
return botUser.GuildPermissions.ManageRoles;
|
return botUser.GuildPermissions.ManageRoles;
|
||||||
case PunishmentAction.ChatMute:
|
case PunishmentAction.ChatMute:
|
||||||
return botUser.GuildPermissions.ManageRoles; // adds ellie-mute role
|
return botUser.GuildPermissions.ManageRoles; // adds nadeko-mute role
|
||||||
case PunishmentAction.VoiceMute:
|
case PunishmentAction.VoiceMute:
|
||||||
return botUser.GuildPermissions.MuteMembers;
|
return botUser.GuildPermissions.MuteMembers;
|
||||||
case PunishmentAction.AddRole:
|
case PunishmentAction.AddRole:
|
||||||
|
|
Loading…
Reference in a new issue