Added timestamp and green color on the version embed
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
f889492375
commit
cbf4f5f37f
@ -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());
|
||||
}
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user