mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2025-09-04 16:37:19 +00:00
Adds bot exit command for bot creator
This commit is contained in:
parent
e6293716f9
commit
597712b282
@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using DeukBot4.MessageHandlers.CommandHandler.RequestStructure;
|
||||
using DeukBot4.MessageHandlers.Permissions;
|
||||
using Discord;
|
||||
@ -58,5 +59,11 @@ namespace DeukBot4.MessageHandlers.CommandHandler
|
||||
await channel.SendMessageAsync(request.Parameters[1].AsString());
|
||||
}
|
||||
|
||||
[Command("exit", PermissionLevel.BotCreator)]
|
||||
public async Task ExitBot(CommandRequest request)
|
||||
{
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user