From 2010948cc4daaf1e8d39948e26b7b235b2d2acae Mon Sep 17 00:00:00 2001 From: BrokenFire Date: Wed, 10 May 2017 17:47:23 +0200 Subject: [PATCH] Correct NSFW --- src/net/Broken/Commandes/NumberedCommande.java | 2 +- src/net/Broken/Commandes/Over18/Madame.java | 2 +- src/net/Broken/Commandes/Over18/SM.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/Broken/Commandes/NumberedCommande.java b/src/net/Broken/Commandes/NumberedCommande.java index e8bf0cb..3bc4635 100644 --- a/src/net/Broken/Commandes/NumberedCommande.java +++ b/src/net/Broken/Commandes/NumberedCommande.java @@ -42,7 +42,7 @@ public abstract class NumberedCommande implements Commande{ public void action(String[] args, MessageReceivedEvent event) { if(args.length == 0) { - if(event.getTextChannel().getName().equals("over18")) { + if(event.getTextChannel().getName().equals("nsfw-over18")) { Redirection redirect= new Redirection(); int randomResult = (int) (minNumber + (Math.random() * (maxNumber - minNumber))); event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n"+baseURL+randomResult+"-2/").queue(); diff --git a/src/net/Broken/Commandes/Over18/Madame.java b/src/net/Broken/Commandes/Over18/Madame.java index 93d964c..6da2f3c 100644 --- a/src/net/Broken/Commandes/Over18/Madame.java +++ b/src/net/Broken/Commandes/Over18/Madame.java @@ -22,7 +22,7 @@ public class Madame implements Commande{ @Override public void action(String[] args, MessageReceivedEvent event) { - if(event.getTextChannel().getName().equals("over18")) { + if(event.getTextChannel().getName().equals("nsfw-over18")) { Redirection redirect = new Redirection(); boolean success=false; boolean error=false; diff --git a/src/net/Broken/Commandes/Over18/SM.java b/src/net/Broken/Commandes/Over18/SM.java index 3daf6a9..cee2f55 100644 --- a/src/net/Broken/Commandes/Over18/SM.java +++ b/src/net/Broken/Commandes/Over18/SM.java @@ -22,7 +22,7 @@ public class SM implements Commande { @Override public void action(String[] args, MessageReceivedEvent event) { Redirection redirect= new Redirection(); - if(event.getTextChannel().getName().equals("over18")) + if(event.getTextChannel().getName().equals("nsfw-over18")) { try { event.getTextChannel().sendMessage(redirect.get("https://bonjourfetish.tumblr.com/random")).queue();