Translation #199

Merged
greg6775 merged 26 commits from master into greg-dev 2019-12-12 21:01:37 +01:00
22 changed files with 107 additions and 86 deletions
Showing only changes of commit 69ac608c2f - Show all commits

View file

@ -98,8 +98,7 @@ public class Hadder {
new ReadyListener(rethink, config),
// new LinkListener(rethink),
new InviteLinkListener(rethink),
new RulesListener(rethink),
new SomeoneListener());
new RulesListener(rethink));
try {
shardManager = builder.build();

View file

@ -28,27 +28,27 @@ public class JoinCommand implements Command {
.build()).queue();
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING)
.setTitle("Already connected")
.setDescription("I am already connected to your voice channel.")
.setTitle(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.error.connecting.already.title"))
.setDescription(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.error.connecting.already.description"))
.build()).queue();
}
} else {
event.getGuild().getAudioManager().openAudioConnection(vc);
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setTitle("Successfully connected")
.setDescription("I successfully connected to " + vc.getName() + ".")
.setTitle(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.success.title"))
.setDescription(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.success.description", vc.getName()))
.build()).queue();
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING)
.setTitle("Already trying to connect")
.setDescription("Hadder is already trying to connect. Please wait a moment.")
.setTitle(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.error.connecting.trying.title"))
.setDescription(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.error.connecting.trying.description"))
.build()).queue();
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING)
.setTitle("No Voice Channel")
.setDescription("You aren't in a Voice Channel.")
.setTitle(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.error.channel.title"))
.setDescription(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.join.error.channel.description"))
.build()).queue();
}
}
@ -60,7 +60,7 @@ public class JoinCommand implements Command {
@Override
public String description() {
return "Joins your voice channel";
return MessageEditor.handle("en", "commands.music.join.help.description");
}
@Override

View file

@ -15,13 +15,13 @@ public class LeaveCommand implements Command {
if (event.getGuild().getSelfMember().getVoiceState().inVoiceChannel()) {
event.getGuild().getAudioManager().closeAudioConnection();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setTitle("Successfully disconnected")
.setDescription("I successfully disconnected from the Voice Channel")
.setTitle(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.leave.success.title"))
.setDescription(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.leave.success.description"))
.build()).queue();
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING)
.setTitle("Not connected")
.setDescription("I'm currently in no Voice Channel on this Guild")
.setTitle(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.leave.error.tile"))
.setDescription(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.music.leave.error.description"))
.build()).queue();
}
}
@ -33,7 +33,7 @@ public class LeaveCommand implements Command {
@Override
public String description() {
return "Leaves a voice channel";
return MessageEditor.handle("en", "commands.music.leave.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class AnalCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Anal")
.build()).queue();
@ -42,7 +42,7 @@ public class AnalCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class AnalCommand implements Command {
@Override
public String description() {
return "Shows a random anal gif.";
return MessageEditor.handle("en", "commands.nsfw.anal.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class BDSMCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("Image not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.img.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("BDSM")
.build()).queue();
@ -42,7 +42,7 @@ public class BDSMCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class BDSMCommand implements Command {
@Override
public String description() {
return "Shows a random bdsm picture.";
return MessageEditor.handle("en", "commands.nsfw.bdsm.help.description");
}
@Override

View file

@ -28,7 +28,7 @@ public class BlowjobCommand implements Command {
String url = response.body().string().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("Image not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.img.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Blowjob")
.build()).queue();
@ -38,7 +38,7 @@ public class BlowjobCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -49,7 +49,7 @@ public class BlowjobCommand implements Command {
@Override
public String description() {
return "Shows a random Blowjob picture.";
return MessageEditor.handle("en", "commands.nsfw.blowjob.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class BoobsCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Boobs")
.build()).queue();
@ -42,7 +42,7 @@ public class BoobsCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class BoobsCommand implements Command {
@Override
public String description() {
return "Shows a random boob gif.";
return MessageEditor.handle("en", "commands.nsfw.boobs.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class CumCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Cum")
.build()).queue();
@ -42,7 +42,7 @@ public class CumCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class CumCommand implements Command {
@Override
public String description() {
return "Shows a random cum gif.";
return MessageEditor.handle("en", "commands.nsfw.cum.help.description");
}
@Override

View file

@ -28,7 +28,7 @@ public class EroticCommand implements Command {
String url = response.body().string().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("Image not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.img.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Erotic")
.build()).queue();
@ -38,7 +38,7 @@ public class EroticCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -49,7 +49,7 @@ public class EroticCommand implements Command {
@Override
public String description() {
return "Shows a random erotic picture.";
return MessageEditor.handle("en", "commands.nsfw.erotic.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class FeetCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Feet")
.build()).queue();
@ -42,7 +42,7 @@ public class FeetCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class FeetCommand implements Command {
@Override
public String description() {
return "Shows a random feet gif.";
return MessageEditor.handle("en", "commands.nsfw.feet.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class FingeringCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Fingering")
.build()).queue();
@ -42,7 +42,7 @@ public class FingeringCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class FingeringCommand implements Command {
@Override
public String description() {
return "Shows a random fingering gif.";
return MessageEditor.handle("en", "commands.nsfw.fingering.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class LickingCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Licking")
.build()).queue();
@ -42,7 +42,7 @@ public class LickingCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class LickingCommand implements Command {
@Override
public String description() {
return "Shows a random licking gif.";
return MessageEditor.handle("en", "commands.nsfw.linking.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class PornCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Porn")
.build()).queue();
@ -42,7 +42,7 @@ public class PornCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class PornCommand implements Command {
@Override
public String description() {
return "Shows a random porn gif.";
return MessageEditor.handle("en", "commands.nsfw.porn.help.description");
}
@Override

View file

@ -28,7 +28,7 @@ public class PussyCommand implements Command {
String url = response.body().string().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Pussy")
.build()).queue();
@ -38,7 +38,7 @@ public class PussyCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -49,7 +49,7 @@ public class PussyCommand implements Command {
@Override
public String description() {
return "Shows a random pussy gif.";
return MessageEditor.handle("en", "commands.nsfw.pussy.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class RandomPornCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Random Porn")
.build()).queue();
@ -42,7 +42,7 @@ public class RandomPornCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class RandomPornCommand implements Command {
@Override
public String description() {
return "Shows a completely random porn gif.";
return MessageEditor.handle("en", "commands.nsfw.randomporn.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class SoloCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Solo")
.build()).queue();
@ -42,7 +42,7 @@ public class SoloCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class SoloCommand implements Command {
@Override
public String description() {
return "Shows a random solo gif.";
return MessageEditor.handle("en", "commands.nsfw.solo.help.description");
}
@Override

View file

@ -32,7 +32,7 @@ public class SpankCommand implements Command {
String url = response1.toString().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("GIF not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.gif.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Spank")
.build()).queue();
@ -42,7 +42,7 @@ public class SpankCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -53,7 +53,7 @@ public class SpankCommand implements Command {
@Override
public String description() {
return "Shows a random spank gif.";
return MessageEditor.handle("en", "commands.nsfw.spank.help.description");
}
@Override

View file

@ -28,7 +28,7 @@ public class TransCommand implements Command {
String url = response.body().string().replace("{\"url\":\"", "");
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.INFO)
.setAuthor("Image not showing? Click here", url.replace("\"}", ""))
.setAuthor(MessageEditor.handle(event.getRethink().getLanguage(event.getAuthor().getId()), "commands.nsfw.img.error.title"), url.replace("\"}", ""))
.setImage(url.replace("\"}", ""))
.setFooter("Trans")
.build()).queue();
@ -38,7 +38,7 @@ public class TransCommand implements Command {
}
} else {
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.WARNING).setTitle("No NSFW").setDescription("You can only execute this command in NSFW channels!").build()).queue();
event.getTextChannel().sendMessage(new MessageEditor().setDefaultSettings(MessageEditor.MessageType.NO_NSFW).build()).queue();
}
}
@ -49,7 +49,7 @@ public class TransCommand implements Command {
@Override
public String description() {
return "Shows a random trans picture.";
return MessageEditor.handle("en", "commands.nsfw.trans.help.description");
}
@Override

View file

@ -7,6 +7,7 @@ import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import javax.annotation.Nonnull;
import java.util.Random;
public class MentionListener extends ListenerAdapter {
@ -27,6 +28,11 @@ public class MentionListener extends ListenerAdapter {
.addField("Prefix (User)", rethink.getUserPrefix(event.getAuthor().getId()), false)
.addField("Prefix (Guild)", rethink.getGuildPrefix(event.getGuild().getId()), false)
.build()).queue();
} else if (event.getMessage().getContentRaw().equalsIgnoreCase("@someone")) {
int member = new Random().nextInt(event.getGuild().getMembers().size()-1);
if (member>0&&member<event.getGuild().getMembers().size()) {
event.getChannel().sendMessage(event.getGuild().getMembers().get(member).getAsMention()+ " (Executed by: "+event.getAuthor().getAsTag()+")").queue();
}
}
}
}

View file

@ -1,24 +0,0 @@
/*
* @author Hax / Hax6775 / Schlauer_Hax
*/
package com.bbn.hadder.listener;
import net.dv8tion.jda.api.events.message.guild.GuildMessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import javax.annotation.Nonnull;
import java.util.Random;
public class SomeoneListener extends ListenerAdapter {
@Override
public void onGuildMessageReceived(@Nonnull GuildMessageReceivedEvent event) {
if (event.getMessage().getContentRaw().equalsIgnoreCase("@someone")) {
int member = new Random().nextInt(event.getGuild().getMembers().size()-1);
if (member>0&&member<event.getGuild().getMembers().size()) {
event.getChannel().sendMessage(event.getGuild().getMembers().get(member).getAsMention()+ " (Executed by: "+event.getAuthor().getAsTag()+")").queue();
}
}
}
}

View file

@ -50,6 +50,15 @@ public class MessageEditor {
.setFooter("Hadder", "https://bigbotnetwork.com/images/Hadder.png")
.setTimestamp(Instant.now());
break;
case NO_NSFW:
builder
.setTitle("⛔ No NSFW ⛔")
.setDescription("You can only execute this command in NSFW channels!")
.setColor(Color.RED)
.setFooter("Hadder", "https://bigbotnetwork.com/images/Hadder.png")
.setTimestamp(Instant.now());
break;
}
return builder;
}
@ -59,7 +68,8 @@ public class MessageEditor {
WARNING,
INFO,
NO_PERMISSION,
NO_SELF_PERMISSION
NO_SELF_PERMISSION,
NO_NSFW
}
public static String handle(String language_code, String string) {

View file

@ -160,3 +160,33 @@ commands.moderation.rules.help.description = Setup the rules on your Discord ser
commands.music.join.success.title = Successfully connected
commands.music.join.success.description = I successfully connected to %extra%.
commands.music.join.error.connecting.already.title = Already connected
commands.music.join.error.connecting.already.description = I am already connected to your voice channel.
commands.music.join.error.connecting.trying.title = Already trying to connect
commands.music.join.error.connecting.trying.description = Hadder is already trying to connect. Please wait a moment.
commands.music.join.error.channel.title = No Voice Channel
commands.music.join.error.channel.description = You aren't in a Voice Channel.
commands.music.join.help.description = Joins your voice channel
commands.music.leave.success.title = = Successfully disconnected
commands.music.leave.success.description = I successfully disconnected from the Voice Channel
commands.music.leave.error.tile = Not connected
commands.music.leave.error.description = I'm currently in no Voice Channel on this Guild
commands.music.leave.help.description = Leaves a voice channel
commands.nsfw.gif.error.title = GIF not showing? Click here
commands.nsfw.img.error.title = Image not showing? Click here
commands.nsfw.anal.help.description = Shows a random anal gif.
commands.nsfw.bdsm.help.description = Shows a random BDSM picture.
commands.nsfw.blowjob.help.description = Shows a random Blowjob picture.
commands.nsfw.boobs.help.description = Shows a random boob gif.
commands.nsfw.cum.help.description = Shows a random cum gif.
commands.nsfw.erotic.help.description = Shows a random erotic picture.
commands.nsfw.feet.help.description = Shows a random feet gif.
commands.nsfw.fingering.help.description = Shows a random fingering gif.
commands.nsfw.linking.help.description = Shows a random licking gif.
commands.nsfw.porn.help.description = Shows a random porn gif.
commands.nsfw.pussy.help.description = Shows a random pussy gif.
commands.nsfw.randomporn.help.description = Shows a completely random porn gif.
commands.nsfw.solo.help.description = Shows a random solo gif.
commands.nsfw.spank.help.description = Shows a random spank gif.
commands.nsfw.trans.help.description = Shows a random trans picture.