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" } }