From e293844c70b8ecbf2820af890166941d24a6577d Mon Sep 17 00:00:00 2001 From: Vlad Rud Date: Mon, 16 Aug 2021 20:34:00 +0300 Subject: [PATCH] Trigger fix --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e0926a0..6dbd304 100644 --- a/index.js +++ b/index.js @@ -600,7 +600,7 @@ async function processKarma(msg, match, settings={}) { } if(from.id == to.id) { const trigger = `self${updateValue > 0 ? "Like" : "Dislike"}` - const messages = await Trigger.find({trigger:'selfLike', show: true}) + const messages = await Trigger.find({trigger:trigger, show: true}) const message = messages[getRandomInt(0, messages.length)].text bot.sendMessage(chat_id, message, {reply_to_message_id: msg.message_id}) return