From 884968216335a2b150105cbd84838494fb6ccf7f Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Sun, 4 Jul 2021 12:53:01 +0200 Subject: [PATCH] Fix some issues with custom command --- commands/custom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/custom.js b/commands/custom.js index 5b01be2..117be56 100644 --- a/commands/custom.js +++ b/commands/custom.js @@ -3,6 +3,7 @@ const deleteCustomCommand = require("../util/deleteCustomCommand"); const getAllCustomCommands = require("../util/getAllCustomCommands"); const getOwnerOfCustomCommand = require("../util/getOwnerOfCustomCommand"); const Discord = require('discord.js'); +const fs = require('fs') module.exports = { name: 'custom', @@ -24,7 +25,7 @@ module.exports = { let customMessage = args.slice(2, args.length).join(" "); switch (args[0].toLowerCase()) { case "add": - sendText = addCustomCommand(args[0], customMessage, message.author.id); + sendText = addCustomCommand(args[1], customMessage, message.author.id); break; case "remove": case "delete":