From bd76562bcc8fba4c29e5098485dbf00c354bde84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 20 Nov 2022 05:48:31 +0100 Subject: [PATCH] Remove "flip a coin" message-command We have /coinflip now --- .../hidekobot/listeners/MessageListener.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java b/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java index eead31a..416c748 100644 --- a/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java +++ b/src/main/java/wtf/beatrice/hidekobot/listeners/MessageListener.java @@ -53,24 +53,6 @@ public class MessageListener extends ListenerAdapter 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")) { MessageChannel channel = event.getChannel();