diff --git a/commands/custom.js b/commands/custom.js index a56e496..0d55eae 100644 --- a/commands/custom.js +++ b/commands/custom.js @@ -28,6 +28,10 @@ module.exports = { let customMessage = args.slice(2, args.length).join(" "); switch (args[0].toLowerCase()) { case "add": + if(!args[1]) { + message.channel.send("Message can't be empty"); + return; + } sendText = addCustomCommand(args[1], customMessage, message.author.id); break; case "remove":