Correct NSFW

This commit is contained in:
BrokenFire 2017-05-10 17:47:23 +02:00
parent 5963e78926
commit 2010948cc4
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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();