Merge branch 'dev' into 'master'

Added timestamp and green color on the version embed

See merge request lovallat/moviesquotebot!2
This commit is contained in:
Louis Vallat 2020-10-29 23:56:39 +00:00
commit a53ac01ae0

View File

@ -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());
}
)
)