diff --git a/README.md b/README.md index 7068c93..97aa1a5 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ This bot helps the node operators enrolled in the Kusama and Polkadot 1KV Progra - `/help` display all commands - `/add` start the process of adding a validator to the chat - `/remove` start the process of removing a validator from the chat -- `/validatorinfo` view the details of any of the added validators +- `/validatorinfo` (or `/vi`) view the details of any of the added validators - `/rewards` view the monthly rewards chart for a validator or any other address - `/stakinginfo` display self, active and inactive stake amounts for a validator - `/settings` configure the bot diff --git a/modules/config.js b/modules/config.js index 134d609..d81fbbb 100644 --- a/modules/config.js +++ b/modules/config.js @@ -7,7 +7,7 @@ const kusamaEraLengthMins = 360; const polkadotEraLengthMins = 1440; const config = { - version: '1.4.5', + version: '1.4.6', sendReleaseNotes: false, mongoDBConnectionURL: process.env.MONGODB_CONNECTION_URL, dbName: process.env.DB_NAME, @@ -31,7 +31,7 @@ const configure = () => { if (!args.network) { logger.error(`Please provide the network argument (e.g. --network=kusama).`); return false; - } else if (args.network.toLowerCase() == 'polkadot') { // assume Polkadot when no args + } else if (args.network.toLowerCase() == 'polkadot') { logger.info('Configuring for Polkadot.'); config.networkName = 'Polkadot'; config.network1KVInfoURL = 'https://polkadot.network/supporting-decentralization-join-the-polkadot-thousand-validators-programme/'; diff --git a/modules/telegram-bot.js b/modules/telegram-bot.js index 4a6bde5..6d584c6 100644 --- a/modules/telegram-bot.js +++ b/modules/telegram-bot.js @@ -288,7 +288,7 @@ async function processTelegramUpdate(update) { 'Sure, please select the validator to be removed.', Data.ChatState.REMOVE ); - } else if (text == `/validatorinfo`) { + } else if (text == `/validatorinfo` || text == `/vi`) { logger.info(`/validatorinfo received.`); const validators = await Data.getValidatorsForChat(chatId); if (validators.length < 1) {