ClaptrapBot/src/main/java/net/Broken/Commands/Over18/SM.java

53 lines
1.6 KiB
Java
Raw Normal View History

2018-01-12 12:50:12 +01:00
package net.Broken.Commands.Over18;
2016-12-08 20:05:23 +01:00
2017-03-20 18:44:53 +01:00
import net.Broken.Commande;
import net.Broken.Tools.Redirection;
2016-12-08 20:05:23 +01:00
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
2016-12-08 20:05:23 +01:00
/**
* Created by seb65 on 10/11/2016.
*/
public class SM implements Commande {
Logger logger = LogManager.getLogger();
2016-12-08 20:05:23 +01:00
public String HELP="T'es sérieux la?";
@Override
public boolean called(String[] args, MessageReceivedEvent event) {
return false;
}
@Override
public void action(String[] args, MessageReceivedEvent event) {
Redirection redirect= new Redirection();
2018-02-27 15:17:00 +01:00
event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n:warning: SM n'est plus disponible pour le moment. Pour plus d'info: https://lc.cx/cbSw :warning: ").queue();
2017-09-04 18:36:23 +02:00
// try {
// event.getTextChannel().sendMessage(redirect.get("https://bonjourfetish.tumblr.com/random")).queue();
// } catch (IOException e) {
// logger.warn("Erreur de redirection.");
// event.getTextChannel().sendMessage(event.getAuthor().getAsMention() + "\n:warning: **__Erreur de redirection (5 essais), Réessayez__**:warning: ").queue();
// }
2016-12-08 20:05:23 +01:00
}
@Override
public void executed(boolean success, MessageReceivedEvent event) {
}
2017-09-05 02:13:27 +02:00
@Override
public boolean isPrivateUsable() {
return false;
}
2018-02-23 19:17:23 +01:00
@Override
public boolean isAdminCmd() {
return false;
}
2018-02-27 15:17:00 +01:00
@Override
public boolean isNSFW() {
return true;
}
2016-12-08 20:05:23 +01:00
}