diff --git a/.env.example b/.env.example index 17a5e80..b04aded 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,5 @@ TOKEN= -CLIENT_ID= \ No newline at end of file +CLIENT_ID= + +EMOJI_STATUS_ONLINE= +EMOJI_STATUS_OFFLINE= \ No newline at end of file diff --git a/src/commands/utility/statut.command.ts b/src/commands/utility/statut.command.ts index 255861c..04dbd20 100644 --- a/src/commands/utility/statut.command.ts +++ b/src/commands/utility/statut.command.ts @@ -25,7 +25,7 @@ export default { embed.setThumbnail(interaction.client.user.avatarURL()) for(let host of statusService.hosts){ - embed.addFields({name: host.name, value: host.alive ? ' Online' : ' Offline', inline: false}); + embed.addFields({name: host.name, value: host.alive ? `${process.env.EMOJI_STATUS_ONLINE} Online` : `${process.env.EMOJI_STATUS_OFFLINE} Offline`, inline: false}); } await interaction.editReply({embeds: [embed]});