kill count

This commit is contained in:
smsteel 2019-02-11 16:31:52 +03:00
parent 975791b83e
commit 731c5ccdba

3
bot.js
View File

@ -36,7 +36,6 @@ bot.hears(
/^\/kills[ =](.+)$/,
ctx => getAllKills(ctx.match[1])
.then(allKills => {
console.log(allKills)
if (!allKills) {
ctx.reply('Не найдено')
return
@ -44,7 +43,7 @@ bot.hears(
ctx.replyWithMarkdown(
formattedStringTable(
allKills.map(kills => ({
'монстр': getEntityName(kills.entityName),
'монстр': getEntityName(kills),
'убийств': kills.killCount
}))
)