Correct NSFW
This commit is contained in:
parent
5963e78926
commit
2010948cc4
@ -42,7 +42,7 @@ public abstract class NumberedCommande implements Commande{
|
|||||||
public void action(String[] args, MessageReceivedEvent event) {
|
public void action(String[] args, MessageReceivedEvent event) {
|
||||||
if(args.length == 0)
|
if(args.length == 0)
|
||||||
{
|
{
|
||||||
if(event.getTextChannel().getName().equals("over18")) {
|
if(event.getTextChannel().getName().equals("nsfw-over18")) {
|
||||||
Redirection redirect= new Redirection();
|
Redirection redirect= new Redirection();
|
||||||
int randomResult = (int) (minNumber + (Math.random() * (maxNumber - minNumber)));
|
int randomResult = (int) (minNumber + (Math.random() * (maxNumber - minNumber)));
|
||||||
event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n"+baseURL+randomResult+"-2/").queue();
|
event.getTextChannel().sendMessage(event.getAuthor().getAsMention()+"\n"+baseURL+randomResult+"-2/").queue();
|
||||||
|
@ -22,7 +22,7 @@ public class Madame implements Commande{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void action(String[] args, MessageReceivedEvent event) {
|
public void action(String[] args, MessageReceivedEvent event) {
|
||||||
if(event.getTextChannel().getName().equals("over18")) {
|
if(event.getTextChannel().getName().equals("nsfw-over18")) {
|
||||||
Redirection redirect = new Redirection();
|
Redirection redirect = new Redirection();
|
||||||
boolean success=false;
|
boolean success=false;
|
||||||
boolean error=false;
|
boolean error=false;
|
||||||
|
@ -22,7 +22,7 @@ public class SM implements Commande {
|
|||||||
@Override
|
@Override
|
||||||
public void action(String[] args, MessageReceivedEvent event) {
|
public void action(String[] args, MessageReceivedEvent event) {
|
||||||
Redirection redirect= new Redirection();
|
Redirection redirect= new Redirection();
|
||||||
if(event.getTextChannel().getName().equals("over18"))
|
if(event.getTextChannel().getName().equals("nsfw-over18"))
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
event.getTextChannel().sendMessage(redirect.get("https://bonjourfetish.tumblr.com/random")).queue();
|
event.getTextChannel().sendMessage(redirect.get("https://bonjourfetish.tumblr.com/random")).queue();
|
||||||
|
Loading…
Reference in New Issue
Block a user