Skip to content

Commit

Permalink
Fixing.
Browse files Browse the repository at this point in the history
  • Loading branch information
DxsSucuk committed Oct 28, 2022
1 parent e6aa6e7 commit 66e3612
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions languages/en-GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ command:
funFact: "Just some random facts!"
game: "Access Ree6 internal Games."
hornyjail: "Put someone into the Horny-Jail."
hornyjail_slash: "Put someone into the Not-Well-Behaved-Jail."
hug: "Hug someone you like!"
kiss: "Kiss someone!"
manga: "Search for mangas on kitsu.io!"
Expand Down Expand Up @@ -510,6 +511,7 @@ command:
volume: "Change the Volume of the current Track."
nsfw: "Shows a random NSFW Image."
rule34: "Shows a random Rule34 Image."
rule34_slash: "Shows not safe for work Images from a specific Website."
category:
info: "Used to gather information or provide information."
moderation: "Moderation Tools that can help you manager Users or prevent rule breaking on the Server."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void onPerform(CommandEvent commandEvent) {
*/
@Override
public CommandData getCommandData() {
return new CommandDataImpl("hornyjail", LanguageService.getDefault("command.description.hornyjail")).addOptions(new OptionData(OptionType.USER, "target", "The User that should be put into the Hornyjail!").setRequired(true));
return new CommandDataImpl("behavejail", LanguageService.getDefault("command.description.hornyjail_slash")).addOptions(new OptionData(OptionType.USER, "target", "The User that should be put into the Hornyjail!").setRequired(true));
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/de/presti/ree6/commands/impl/fun/Waifu.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public void onPerform(CommandEvent commandEvent) {
if (!jsonObject.has("series")) {
em.setTitle("Error!");
em.setColor(Color.RED);
em.setDescription(commandEvent.getResource("command.default.retrievalError"));
em.setDescription(commandEvent.getResource("message.default.retrievalError"));
em.setFooter(commandEvent.getMember().getUser().getAsTag() + " - " + Data.ADVERTISEMENT, commandEvent.getMember().getUser().getAvatarUrl());
commandEvent.reply(em.build());
return;
Expand All @@ -40,8 +40,8 @@ public void onPerform(CommandEvent commandEvent) {
JsonObject jsonObject1 = jsonObject.get("series").getAsJsonObject();

em.setImage((jsonObject.has("display_picture") ? jsonObject.get("display_picture").getAsString() : "https://images.ree6.de/notfound.png"));
em.addField("**" + commandEvent.getResource("label.character") + "**", "``" + (jsonObject.has("name") ? jsonObject.get("name").getAsString() : commandEvent.getResource("command.default.retrievalError")) + "``", true);
em.addField("**" + commandEvent.getResource("label.from") + "**", "``" + (jsonObject1.has("name") ? jsonObject1.get("name").getAsString() : commandEvent.getResource("command.default.retrievalError")) + "``", true);
em.addField("**" + commandEvent.getResource("label.character") + "**", "``" + (jsonObject.has("name") ? jsonObject.get("name").getAsString() : commandEvent.getResource("message.default.retrievalError")) + "``", true);
em.addField("**" + commandEvent.getResource("label.from") + "**", "``" + (jsonObject1.has("name") ? jsonObject1.get("name").getAsString() : commandEvent.getResource("message.default.retrievalError")) + "``", true);
if((jsonObject.has("nsfw") && jsonObject.get("nsfw").getAsBoolean())) {
em.addField("**NSFW**", "", true);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public void sendImage(CommandEvent commandEvent, Message message, String tags) {
*/
@Override
public CommandData getCommandData() {
return new CommandDataImpl("r34", LanguageService.getDefault("command.description.rule34"))
return new CommandDataImpl("r34", LanguageService.getDefault("command.description.rule34_slash"))
.addOptions(new OptionData(OptionType.STRING, "tags", "Tags for the image search"));
}

Expand Down

0 comments on commit 66e3612

Please sign in to comment.