diff options
author | Minteck <contact@minteck.org> | 2022-01-19 17:41:42 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-19 17:41:42 +0100 |
commit | e0d933d5734e331c15a299c50c22ec06171a914f (patch) | |
tree | 40e3acb25c14a66c2004c1a9d2abc5a317223219 /commands | |
parent | 1f7f1dc76beef28156d3a9066adc26c98ed95471 (diff) | |
parent | 4be58e9d499e2f2610c179520241b3329b8a622f (diff) | |
download | ponyfind-e0d933d5734e331c15a299c50c22ec06171a914f.tar.gz ponyfind-e0d933d5734e331c15a299c50c22ec06171a914f.tar.bz2 ponyfind-e0d933d5734e331c15a299c50c22ec06171a914f.zip |
Update
Diffstat (limited to 'commands')
-rw-r--r-- | commands/info.js | 4 |
1 files 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 +} |