Trigger fix

This commit is contained in:
Vlad Rud 2021-08-16 20:34:00 +03:00
parent 3d3f100fc0
commit e293844c70
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ async function processKarma(msg, match, settings={}) {
} }
if(from.id == to.id) { if(from.id == to.id) {
const trigger = `self${updateValue > 0 ? "Like" : "Dislike"}` 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 const message = messages[getRandomInt(0, messages.length)].text
bot.sendMessage(chat_id, message, {reply_to_message_id: msg.message_id}) bot.sendMessage(chat_id, message, {reply_to_message_id: msg.message_id})
return return