From b4a4188dc80fbd1446fe2c814a04563e893b4b20 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Sat, 31 Oct 2020 21:22:01 +0100 Subject: [PATCH] Added quoting people when successfully downloading a subtitle Signed-off-by: Louis Vallat --- src/main/java/xyz/vallat/louis/commands/Download.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/xyz/vallat/louis/commands/Download.java b/src/main/java/xyz/vallat/louis/commands/Download.java index c7298e8..10f0e9d 100644 --- a/src/main/java/xyz/vallat/louis/commands/Download.java +++ b/src/main/java/xyz/vallat/louis/commands/Download.java @@ -81,7 +81,9 @@ public class Download extends Command { event.getMember().isPresent() ? event.getMember().get().getId() : null, event.getGuildId().isPresent() ? event.getGuildId().get() : null); 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); } else { logger.error("Could not download subtitle '{}': {}", args.get(0), subs.getStatus());