From 96d6ca453927f916db6f68d0106d27c21e0045df Mon Sep 17 00:00:00 2001 From: = Date: Tue, 20 Jul 2021 16:32:16 -0400 Subject: [PATCH] Cleaning input --- commands/roll.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;