From 5eb4e2c7196ed01eeecaab4a5851e9cefb272d43 Mon Sep 17 00:00:00 2001 From: Stinggy Date: Mon, 27 Apr 2020 23:31:37 -0500 Subject: [PATCH] more compacting --- src/main/java/bot/modules/InfoBuilder.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/bot/modules/InfoBuilder.java b/src/main/java/bot/modules/InfoBuilder.java index 0fb3dd4..82e74b5 100644 --- a/src/main/java/bot/modules/InfoBuilder.java +++ b/src/main/java/bot/modules/InfoBuilder.java @@ -33,9 +33,8 @@ public static MessageEmbed getInfoEmbed (String url) throws IOException { info.addField("Characters", display(infoFetcher.getChars()), true); } } - info.addField("Japanese Title", infoFetcher.getTitleJapanese(), true); info.addField("Tags", display(infoFetcher.getTags()), false); - info.setAuthor("Doujin Info", null, "https://i.redd.it/fkg9yip5yyl21.png"); + info.setAuthor(infoFetcher.getTitleJapanese(), null, "https://i.redd.it/fkg9yip5yyl21.png"); info.setFooter(infoFetcher.getPages() + " pages | Uploaded:", "https://images.emojiterra.com/twitter/v12/512px/1f914.png"); info.setImage(infoFetcher.getPageLink(1)); @@ -66,12 +65,11 @@ public static MessageEmbed getInfoEmbed (String url) throws IOException { info.addField("Characters", display(infoFetcher.getCharacters()), true); } } - info.addField("Japanese Title", infoFetcher.getTitleJapanese(), true); info.addField("--------", "", false); info.addField("Male Tags", display(infoFetcher.getMaleTags()), true); info.addField("Female Tags", display(infoFetcher.getFemaleTags()), true); info.addField("Misc Tags", display(infoFetcher.getMiscTags()), true); - info.setAuthor("Doujin Info", null, "https://i.redd.it/fkg9yip5yyl21.png"); + info.setAuthor(infoFetcher.getTitleJapanese(), null, "https://i.redd.it/fkg9yip5yyl21.png"); info.setFooter(infoFetcher.getPages() + " pages | Uploaded:", "https://images.emojiterra.com/twitter/v12/512px/1f914.png"); info.setImage(infoFetcher.getThumbnailUrl());