From cbf4f5f37f6e74babbaa259b1270bcaafbbe4434 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Fri, 30 Oct 2020 00:48:57 +0100 Subject: [PATCH] Added timestamp and green color on the version embed Signed-off-by: Louis Vallat --- src/main/java/xyz/vallat/louis/commands/Version.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/xyz/vallat/louis/commands/Version.java b/src/main/java/xyz/vallat/louis/commands/Version.java index 5a8eb8a..5a2a062 100644 --- a/src/main/java/xyz/vallat/louis/commands/Version.java +++ b/src/main/java/xyz/vallat/louis/commands/Version.java @@ -9,6 +9,8 @@ import xyz.vallat.louis.database.SubtitleLineManager; import xyz.vallat.louis.database.SubtitleManager; import xyz.vallat.louis.discord.DiscordManager; +import java.time.Instant; + public class Version extends Command { public Version(String name) { @@ -21,7 +23,7 @@ public class Version extends Command { .flatMap(channel -> channel .createEmbed(embedCreateSpec -> { embedCreateSpec - .setColor(Color.BISMARK) + .setColor(Color.MEDIUM_SEA_GREEN) .setTitle(MoviesQuoteBot.NAME) .setDescription(MoviesQuoteBot.DESCRIPTION) .addField("Guilds", String.valueOf(DiscordManager.getGuilds().block()), true) @@ -38,7 +40,8 @@ public class Version extends Command { .getNumberOfSubtitlesByGuild(guild.getId().asString()) + " subtitles.", true); } - embedCreateSpec.addField("Version", MoviesQuoteBot.VERSION, true); + embedCreateSpec.addField("Version", MoviesQuoteBot.VERSION, true) + .setTimestamp(Instant.now()); } ) )