Fix the bots
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
using System.Threading.Tasks;
|
||||
using DSharpPlus.CommandsNext;
|
||||
using DSharpPlus.CommandsNext.Attributes;
|
||||
//using System.Threading.Tasks;
|
||||
//using DSharpPlus.CommandsNext;
|
||||
//using DSharpPlus.CommandsNext.Attributes;
|
||||
|
||||
namespace LaDOSE.DiscordBot.Command
|
||||
{
|
||||
[RequireRolesAttribute("SuperAdmin")]
|
||||
public class Shutdown
|
||||
{
|
||||
private readonly Dependencies dep;
|
||||
//namespace LaDOSE.DiscordBot.Command
|
||||
//{
|
||||
// [RequireRolesAttribute(RoleCheckMode.Any,"SuperAdmin")]
|
||||
// public class Shutdown : BaseCommandModule
|
||||
// {
|
||||
// private readonly Dependencies dep;
|
||||
|
||||
public Shutdown(Dependencies d)
|
||||
{
|
||||
dep = d;
|
||||
}
|
||||
// public Shutdown(Dependencies d)
|
||||
// {
|
||||
// dep = d;
|
||||
// }
|
||||
|
||||
|
||||
[Command("shutdown")]
|
||||
public async Task ShutDownAsync(CommandContext ctx)
|
||||
{
|
||||
await ctx.RespondAsync("Hasta la vista, baby");
|
||||
dep.Cts.Cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
// [Command("shutdown")]
|
||||
// public async Task ShutDownAsync(CommandContext ctx)
|
||||
// {
|
||||
// await ctx.RespondAsync("Hasta la vista, baby");
|
||||
// dep.Cts.Cancel();
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user