From 7c9015cfde266e67830b949bbf75b59c9ce4939f Mon Sep 17 00:00:00 2001 From: Sebastien Date: Sun, 16 Jun 2019 19:27:30 +0200 Subject: [PATCH] Remove useless command --- src/main/java/net/Broken/Commands/Error.java | 41 -------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/main/java/net/Broken/Commands/Error.java diff --git a/src/main/java/net/Broken/Commands/Error.java b/src/main/java/net/Broken/Commands/Error.java deleted file mode 100644 index e036712..0000000 --- a/src/main/java/net/Broken/Commands/Error.java +++ /dev/null @@ -1,41 +0,0 @@ -package net.Broken.Commands; - -import net.Broken.Commande; -import net.Broken.Tools.EmbedMessageUtils; -import net.Broken.Tools.PrivateMessage; -import net.dv8tion.jda.core.entities.ChannelType; -import net.dv8tion.jda.core.events.message.MessageReceivedEvent; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - -/** - * Send standard internal error. - */ - -public class Error implements Commande{ - - private Logger logger = LogManager.getLogger(); - - @Override - public void action(String[] args, MessageReceivedEvent event) { - if(event.isFromType(ChannelType.PRIVATE)) - PrivateMessage.send(event.getAuthor(), EmbedMessageUtils.getInternalError(), logger); - else - event.getTextChannel().sendMessage(EmbedMessageUtils.getInternalError()).queue(); - } - - @Override - public boolean isPrivateUsable() { - return true; - } - - @Override - public boolean isAdminCmd() { - return true; - } - - @Override - public boolean isNSFW() { - return false; - } -}