From 11f2203c8a1f7bfe4d9f0333e025da62c39c8320 Mon Sep 17 00:00:00 2001 From: Minteck Date: Mon, 17 Jan 2022 07:45:27 +0000 Subject: Update info.js --- commands/info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/info.js b/commands/info.js index 11d7c35..b1ec28e 100644 --- a/commands/info.js +++ b/commands/info.js @@ -54,7 +54,7 @@ module.exports = async (interaction) => { let sizep = bytesToPretty(size); let fields = [ - { name: l("Software version", "Version du logiciel", interaction.user.id, interaction.guild ? interaction.guild.id : 0), value: "v" + fs.readFileSync("./config/version.txt") + "." + fs.readFileSync("./.git/refs/heads/trunk").toString().substr(0, 8) + suffix + " (#" + client.shard.count + ")", inline: false }, + { name: l("Software version", "Version du logiciel", interaction.user.id, interaction.guild ? interaction.guild.id : 0), value: "v" + fs.readFileSync("./config/version.txt").toString().trim() + "." + fs.readFileSync("./.git/refs/heads/trunk").toString().substr(0, 8) + suffix + " (#" + client.shard.count + ")", inline: false }, { name: l("Kernel version", "Version du noyau", interaction.user.id, interaction.guild ? interaction.guild.id : 0), value: process.version, inline: true }, { name: l("Experience channel", "Canal d'expériences", interaction.user.id, interaction.guild ? interaction.guild.id : 0), value: channel, inline: true }, { name: l("Known ponies", "Poneys connus", interaction.user.id, interaction.guild ? interaction.guild.id : 0), value: Object.keys(JSON.parse(fs.readFileSync("./data/data.json").toString())).length.toString(), inline: true }, @@ -75,4 +75,4 @@ module.exports = async (interaction) => { .setFooter({ text: l("made with ♥ by Minteck, a My Little Pony fan", "fait avec ♥ par Minteck, une fan de My Little Pony", interaction.user.id, interaction.guild ? interaction.guild.id : 0) }) ] }); -} \ No newline at end of file +} -- cgit