From 5f67298b37dee5dd481c87a63f7f08c06829d62f Mon Sep 17 00:00:00 2001 From: smsteel Date: Mon, 11 Feb 2019 09:20:05 +0300 Subject: [PATCH] table test --- bot.js | 4 ++-- package.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index 175d117..2f8f5bd 100644 --- a/bot.js +++ b/bot.js @@ -9,7 +9,7 @@ import { } from './types' import { currentTime } from './utility' import { getEntityDeathMessage, getEntityName } from './ru' -import table from 'string-table' +import stringTable from 'string-table' const bot = new Telegraf('643297173:AAGuqfZx3GhiiARwvY7AtWTTFw1T-2FiwCM') const markdown = TelegrafExtra.markdown() @@ -19,7 +19,7 @@ bot.command( 'players', ({ replyWithMarkdown }) => getPlayersData() .then(getPlayersData => replyWithMarkdown( - table( + stringTable.create( getPlayersData .map(({ displayName, level, online }) => ({ 'имя ': `👤 *${displayName}*`, diff --git a/package.json b/package.json index 9599858..235db7e 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "express": "^4.16.4", "sqlite3": "^4.0.6", "string-table": "^0.1.5", - "table": "^5.2.3", "telegraf": "^3.27.1" } }