Added quoting people when successfully downloading a subtitle

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-31 21:22:01 +01:00
parent c2a6080cfe
commit b4a4188dc8

View File

@ -81,7 +81,9 @@ public class Download extends Command {
event.getMember().isPresent() ? event.getMember().get().getId() : null, event.getMember().isPresent() ? event.getMember().get().getId() : null,
event.getGuildId().isPresent() ? event.getGuildId().get() : null); event.getGuildId().isPresent() ? event.getGuildId().get() : null);
embed.setColor(Color.MEDIUM_SEA_GREEN).setDescription("Everything went well. " + embed.setColor(Color.MEDIUM_SEA_GREEN).setDescription("Everything went well. " +
"Congratulations and thank you for your contribution!"); "Congratulations and thank you" +
(event.getMember().isPresent() ? " <@!" + event.getMember().get().getId() + "> " : " ")
+ "for your contribution!");
embed.addField("You imported", blocks.size() + " lines into my database", false); embed.addField("You imported", blocks.size() + " lines into my database", false);
} else { } else {
logger.error("Could not download subtitle '{}': {}", args.get(0), subs.getStatus()); logger.error("Could not download subtitle '{}': {}", args.get(0), subs.getStatus());