Fix some issues with custom command

This commit is contained in:
SileNce5k 2021-07-04 12:53:01 +02:00
parent 9bb9effaf7
commit 8849682163
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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":