Update messageReactionAdd.js

This commit is contained in:
Kieran Davies authored and GitHub committed 2020-12-18 13:59:36 +00:00
1 parent a0bdec4c42
commit 01399e343b
1 file changed
+8 -4
+8 -4
View File
@@ -33,10 +33,14 @@ module.exports = async (bot, message) => {
}); });
const ticketCMD = supportbot.NewTicket; const ticketCMD = supportbot.NewTicket;
const cmd = bot.commands.get("ticket"); try {
if(!cmd) return; const cmd = bot.commands.get("ticket");
console.log("1") if(!cmd) return;
cmd.execute(bot, message); console.log("1")
cmd.execute(bot, message);
} catch (error) {
console.error(error);
}
} }
} }