Update messageReactionAdd.js
This commit is contained in:
1 parent
a0bdec4c42
commit
01399e343b
1 file changed
+8
-4
@@ -33,10 +33,14 @@ module.exports = async (bot, message) => {
|
||||
});
|
||||
|
||||
const ticketCMD = supportbot.NewTicket;
|
||||
const cmd = bot.commands.get("ticket");
|
||||
if(!cmd) return;
|
||||
console.log("1")
|
||||
cmd.execute(bot, message);
|
||||
try {
|
||||
const cmd = bot.commands.get("ticket");
|
||||
if(!cmd) return;
|
||||
console.log("1")
|
||||
cmd.execute(bot, message);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user