Ability to save phrases to .joint

This commit is contained in:
= 2021-07-20 16:23:30 -04:00
parent 2e71b114f2
commit 41175c0ffd
1 changed files with 15 additions and 0 deletions

15
commands/roll.js Normal file
View File

@ -0,0 +1,15 @@
const fs = require('fs');
const strings = require('../src/strings.json');
module.exports = {
name: 'roll',
description: 'Add a phrase to the .joint command',
execute(message, file) {
strings.weed.push(file.name);
fs.writeFile('./src/strings.json', JSON.stringify(strings), err => {
if (err) throw err;
message.channel.send('It has been added to the list');
})
}
}