kill count
This commit is contained in:
parent
975791b83e
commit
731c5ccdba
3
bot.js
3
bot.js
@ -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
|
||||
}))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user