Fix the bots

This commit is contained in:
2022-09-14 23:29:22 +02:00
parent 8fd6c532c5
commit 3d4ff74d71
8 changed files with 172 additions and 158 deletions

View File

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