1
0
mirror of https://github.com/Burn-E99/SweeperBot.git synced 2026-06-04 07:53:50 -04:00

onlyOneReaction on hold until getReactions is fixed in DD

This commit is contained in:
Ean Milligan (Bastion)
2022-09-08 00:41:02 -04:00
parent 3131552df4
commit 25cd42d7b1

View File

@@ -13,7 +13,7 @@ export const reactionAdd = async (bot: Bot, payload: ReactionAdd) => {
const message = await bot.helpers.getMessage(payload.channelId, payload.messageId); const message = await bot.helpers.getMessage(payload.channelId, payload.messageId);
const onlyOneWordRX = /(only one)/g const onlyOneWordRX = /(only one)/g
if (message.content.toLowerCase().includes('clan poll') && message.content.toLowerCase().match(onlyOneWordRX)?.length) { if (message.content.toLowerCase().includes('clan poll') && message.content.toLowerCase().match(onlyOneWordRX)?.length) {
functions.onlyOneReaction(bot, message); // functions.onlyOneReaction(bot, message);
// bot.helpers.getReactions() // bot.helpers.getReactions()
} }