Ability to save phrases to .joint
This commit is contained in:
parent
2e71b114f2
commit
41175c0ffd
15
commands/roll.js
Normal file
15
commands/roll.js
Normal 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');
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user