nodbot/commands/roll.js

15 lines
381 B
JavaScript
Raw Normal View History

2021-07-20 20:23:30 +00:00
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');
})
}
}