Remove "flip a coin" message-command
All checks were successful
continuous-integration/drone/push Build is passing

We have /coinflip now
This commit is contained in:
Bea 2022-11-20 05:48:31 +01:00
parent cc671499cd
commit bd76562bcc

View File

@ -53,24 +53,6 @@ public class MessageListener extends ListenerAdapter
return; return;
} }
if(eventMessage.equalsIgnoreCase("flip a coin"))
{
MessageChannel channel = event.getChannel();
int rand = RandomUtil.getRandomNumber(0, 1);
String msg;
if(rand == 1)
{
msg = ":coin: It's **Heads**!";
} else {
msg = "It's **Tails**! :coin:";
}
channel.sendMessage(msg).queue();
return;
}
if(eventMessage.equalsIgnoreCase("hideko die")) if(eventMessage.equalsIgnoreCase("hideko die"))
{ {
MessageChannel channel = event.getChannel(); MessageChannel channel = event.getChannel();