diff options
-rw-r--r-- | commands/random.js | 6 | ||||
-rw-r--r-- | config/version.txt | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/commands/random.js b/commands/random.js index 9ac50e2..3769552 100644 --- a/commands/random.js +++ b/commands/random.js @@ -16,6 +16,12 @@ module.exports = async (interaction) => { null, list[Math.floor(Math.random() * list.length)] ] + if (statsPonies[keys[1]] !== undefined) { + statsPonies[keys[1]]++; + } else { + statsPonies[keys[1]] = 1; + } + fs.writeFile("./stats/ponies.json", JSON.stringify(statsPonies), () => {}); await interaction.reply({ ephemeral: interaction.guild !== null, embeds: [ diff --git a/config/version.txt b/config/version.txt index 84da421..8bd7d68 100644 --- a/config/version.txt +++ b/config/version.txt @@ -1 +1 @@ -1.2.39
\ No newline at end of file +1.2.40
\ No newline at end of file |