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 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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user