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