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