This commit is contained in:
Vlad Rud 2021-06-07 17:14:10 +03:00 committed by GitHub
parent 07fced7ae8
commit 2522c54188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -628,11 +628,10 @@ async function processKarma(msg, match, settings={}) {
$inc: {karmaChanged: 1}
}
).exec()
let nice = ""
if (toDB.karma + updateValue == 69) {
nice = "\n*Nice\\.*"
bot.sendMessage(chat_id, "Nice.")
}
const message = `*${markdowned(fromDB.full_name)} \\(${markdowned(fromDB.karma)}\\)* ${changeMessage} карму *${markdowned(toDB.full_name)} \\(${markdowned(toDB.karma + updateValue)}\\)* ${nice}`
const message = `*${markdowned(fromDB.full_name)} \\(${markdowned(fromDB.karma)}\\)* ${changeMessage} карму *${markdowned(toDB.full_name)} \\(${markdowned(toDB.karma + updateValue)}\\)*`
console.log(message)
bot.sendMessage(chat_id, message, {parse_mode: "MarkdownV2"})
}