Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Add /vi command as an alias for /validatorinfo. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
kukabi committed Jun 24, 2021
1 parent 421317b commit 7f74b58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modules/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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/';
Expand Down
2 changes: 1 addition & 1 deletion modules/telegram-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7f74b58

Please sign in to comment.