Updated emojis for karma processing

This commit is contained in:
Nefrace 2021-03-09 22:08:29 +03:00
parent 4199512bcb
commit 5a37468cf2
1 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ bot.onText(/^\/set ([a-zA-Z]+) (\d+)/, async(msg, match) => {
bot.onText(/^(\+|-|👍|👎)/, async(msg, match) => { bot.onText(/^(\+|-|👍|👎||)/, async(msg, match) => {
processKarma(msg, match, {emoji: true}) processKarma(msg, match, {emoji: true})
}) })
@ -418,11 +418,11 @@ async function processKarma(msg, match, settings={}) {
} }
} }
if(msg.sticker) { if(msg.sticker) {
if (["👍","👍🏻","👍🏼","👍🏽","👍🏾","👍🏿",""].includes(msg.sticker.emoji)) { if (["👍", ""].includes(msg.sticker.emoji)) {
changeMessage = `повысил` changeMessage = `повысил`
updateValue = 1 updateValue = 1
} }
else if (["👎","👎🏻","👎🏼","👎🏽","👎🏾","👎🏿",""].includes(msg.sticker.emoji)){ else if (["👎", ""].includes(msg.sticker.emoji)){
changeMessage = `уменьшил` changeMessage = `уменьшил`
updateValue = -1 updateValue = -1
} }