Skip to content

Commit

Permalink
update assets
Browse files Browse the repository at this point in the history
  • Loading branch information
WholesomeGodList committed May 3, 2020
1 parent 980ca02 commit c4541fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/bot/modules/InfoBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static MessageEmbed getInfoEmbed(String url) throws IOException {
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("Doujin Info", null, "https://cdn.discordapp.com/attachments/607405329206083585/706310427491041390/e-hentaihex.png");
info.setFooter(infoFetcher.getPages() + " pages | Rating: " + infoFetcher.getRating() + " | Uploaded:", "https://images.emojiterra.com/twitter/v12/512px/1f914.png");
info.setImage(infoFetcher.getThumbnailUrl());

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/bot/nhentai/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import bot.hListener;
import bot.modules.BotAlert;
import bot.modules.InfoBuilder;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.entities.MessageChannel;
import net.dv8tion.jda.api.entities.MessageEmbed;
import net.dv8tion.jda.api.entities.PrivateChannel;
Expand Down Expand Up @@ -83,7 +84,9 @@ public void run() {
channel.sendMessage(BotAlert.createAlertEmbed("Search", "Sending the results to your DMs!")).complete();
try {
MessageEmbed eb = InfoBuilder.getInfoEmbed(results.get((int) (Math.random() * results.size())));
privatechannel.sendMessage(eb).queue();
EmbedBuilder ebReviser = new EmbedBuilder(eb);
ebReviser.setAuthor("Doujin Info", null, "https://cdn.discordapp.com/attachments/607405329206083585/706310427491041390/e-hentaihex.png");
privatechannel.sendMessage(ebReviser.build()).queue();
} catch (HttpStatusException e) {
logger.info("Exception happened while building random info embed! HTTP status code: " + e.getStatusCode());
privatechannel.sendMessage("An error occurred in the connection. Status code: " + e.getStatusCode()).queue();
Expand Down

0 comments on commit c4541fa

Please sign in to comment.