diff --git a/commands/roll.js b/commands/roll.js index ff1c927..4285b48 100644 --- a/commands/roll.js +++ b/commands/roll.js @@ -1,12 +1,13 @@ const fs = require('fs'); const strings = require('../src/strings.json'); +const functions = require('../functions.js'); module.exports = { name: 'roll', description: 'Add a phrase to the .joint command', usage: '', execute(message, file) { - strings.weed.push(file.name); + strings.weed.push(functions.cleanInput(file.name)); fs.writeFile('./src/strings.json', JSON.stringify(strings), err => { if (err) throw err;