1
0
mirror of https://gitlab.com/Deukhoofd/DeukBot4.git synced 2025-10-27 17:00:05 +00:00

Adds bot exit command for bot creator

This commit is contained in:
2019-08-17 15:32:04 +02:00
parent e6293716f9
commit 597712b282

View File

@@ -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);
}
}
}