This commit is contained in:
2022-12-10 15:49:16 -03:00
commit f501a71033
10 changed files with 492 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
using Discord.Commands;
namespace KasinoBot
{
public class Commands : ModuleBase<SocketCommandContext>
{
private PlayerController playerController = PlayerController.Instance;
[Command("ping")]
[Alias("pong", "hello")]
public Task PingAsync()
=> ReplyAsync("pong!");
[Command("play", RunMode = RunMode.Async)]
public async Task PlayAsync([Remainder] string musicString)
{
await playerController.Play(musicString, Context);
}
[Command("stop", RunMode = RunMode.Async)]
public async Task StopAsync()
{
await playerController.Stop(Context);
}
[Command("skip", RunMode = RunMode.Async)]
public async Task SkipAsync()
{
await playerController.Skip(Context);
}
}
}