table test

This commit is contained in:
smsteel 2019-02-11 09:17:08 +03:00
parent 306982bdc4
commit 9ed230430a

10
bot.js
View File

@ -21,11 +21,11 @@ bot.command(
.then(getPlayersData => replyWithMarkdown(
table(
getPlayersData
.map(({ displayName, level, online }) => ([
`👤 *${displayName}*`,
level,
`${online ? '✅ *онлайн*' : '❔ оффлайн'}`
]))
.map(({ displayName, level, online }) => ({
'имя ': `👤 *${displayName}*`,
'уровень': level,
'статус ': `${online ? '✅ *онлайн*' : '❔ оффлайн'}`
}))
)
))
)