1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 12:30:58 -04:00

An error occurred while executing that command.

This commit is contained in:
AnxietyisReal 2023-06-12 11:26:40 +10:00
parent b0509018d7
commit fdeb5d2324

View File

@ -115,7 +115,7 @@ export default {
}, },
statsgraph: ()=>{ statsgraph: ()=>{
client.statsGraph = -(interaction.options.getInteger('number', true)); client.statsGraph = -(interaction.options.getInteger('number', true));
interaction.reply(`Successfully set to \`${client.statsGraph}\`\n*Total data points: **${JSON.parse(fs.readFileSync(path.join(__dirname, '../database/MPPlayerData.json'), {encoding: 'utf8'})).length.toLocaleString()}***`) interaction.reply(`Successfully set to \`${client.statsGraph}\`\n*Total data points: **${JSON.parse(fs.readFileSync('src/database/MPPlayerData.json', {encoding: 'utf8'})).length.toLocaleString()}***`)
}, },
logs: ()=>{ logs: ()=>{
interaction.deferReply(); interaction.deferReply();