Move command handling out of constructor, add coin reflip command
All checks were successful
continuous-integration/drone/push Build is passing

Having heavy code run in a constructor is bad practice. We made separate methods for command handling.
This commit is contained in:
2022-11-20 22:09:58 +01:00
parent c44251ddb7
commit 3d626bb46f
9 changed files with 73 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
public class PingCommand
{
public PingCommand(@NotNull SlashCommandInteractionEvent event)
public void runSlashCommand(@NotNull SlashCommandInteractionEvent event)
{
event.reply("Pong!").queue();
}