Added timestamp and green color on the version embed

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-30 00:48:57 +01:00
parent f889492375
commit cbf4f5f37f

View File

@ -9,6 +9,8 @@ import xyz.vallat.louis.database.SubtitleLineManager;
import xyz.vallat.louis.database.SubtitleManager; import xyz.vallat.louis.database.SubtitleManager;
import xyz.vallat.louis.discord.DiscordManager; import xyz.vallat.louis.discord.DiscordManager;
import java.time.Instant;
public class Version extends Command { public class Version extends Command {
public Version(String name) { public Version(String name) {
@ -21,7 +23,7 @@ public class Version extends Command {
.flatMap(channel -> channel .flatMap(channel -> channel
.createEmbed(embedCreateSpec -> { .createEmbed(embedCreateSpec -> {
embedCreateSpec embedCreateSpec
.setColor(Color.BISMARK) .setColor(Color.MEDIUM_SEA_GREEN)
.setTitle(MoviesQuoteBot.NAME) .setTitle(MoviesQuoteBot.NAME)
.setDescription(MoviesQuoteBot.DESCRIPTION) .setDescription(MoviesQuoteBot.DESCRIPTION)
.addField("Guilds", String.valueOf(DiscordManager.getGuilds().block()), true) .addField("Guilds", String.valueOf(DiscordManager.getGuilds().block()), true)
@ -38,7 +40,8 @@ public class Version extends Command {
.getNumberOfSubtitlesByGuild(guild.getId().asString()) + " subtitles.", .getNumberOfSubtitlesByGuild(guild.getId().asString()) + " subtitles.",
true); true);
} }
embedCreateSpec.addField("Version", MoviesQuoteBot.VERSION, true); embedCreateSpec.addField("Version", MoviesQuoteBot.VERSION, true)
.setTimestamp(Instant.now());
} }
) )
) )