From ca99b47b2ea29e183ea39bcc8dc970f657190013 Mon Sep 17 00:00:00 2001 From: EazyFTW Date: Tue, 25 Aug 2020 15:20:10 -0500 Subject: [PATCH] Quick stop command fix. --- .../TechsCode/TechDiscordBot/module/cmds/StopCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/StopCommand.java b/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/StopCommand.java index fa7dd0d7..fbbc0cfc 100644 --- a/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/StopCommand.java +++ b/src/main/java/me/TechsCode/TechDiscordBot/module/cmds/StopCommand.java @@ -44,7 +44,7 @@ public int getCooldown() { @Override public void onCommand(TextChannel channel, Message message, Member member, String[] args) { - if(args.length == 1 && args[0].equals("acTualLy sToP")) { + if(args.length == 2 && args[0].equals("acTualLy") && args[1].equals("sToP")) { new TechEmbedBuilder("Stop") .setText("The bot will now stop!") .send(channel); @@ -52,8 +52,8 @@ public void onCommand(TextChannel channel, Message message, Member member, Strin System.exit(0); } else { new TechEmbedBuilder("Stop") - .setText("Hello, " + member.getAsMention() + "! I've detected that you're trying to stop the me!" + - "\n\nI do not like that, especially that if I do stop, I will not be restarted! If you **REALLY** wish to stop me, type the following command:\n`!stop acTualLy sToP`") + .setText("Hello, " + member.getAsMention() + "! I've detected that you're trying to stop me!" + + "\n\nI do not like that, especially that if I do stop, I will not be restarted!\nIf you **REALLY** wish to stop me, type the following command:\n`!stop acTualLy sToP`") .send(channel); }