diff --git a/config.json b/config.json index 8466138..9dac094 100644 --- a/config.json +++ b/config.json @@ -46,7 +46,7 @@ "welcome_string": "Hi! 😊 I'm a bounty bot. And this is a stub. Are you ready for the awesome bounty campaign with automatic payout? Type **/help** to see bounty rules.", /** Bounty rules. Shown by /help command. You can use template literals like ${config.twitter_follow[0]} and ${config.twitter_follow_list} **/ - "help_message": "Get the reward right now!\n\nThe campaign rules:\n- Follow account ${config.twitter_follow[0]} on Twitter\n- Do something else\n- Send me the name (like *@adamant_im*) or the link to your Twitter profile to verify\n\n \nGo!", + "help_message": "Get the **${config.rewards_list}** reward right now!\n\nThe campaign rules:\n- Follow account ${config.twitter_follow[0]} on Twitter\n- Do something else\n- Send me the name (like @adamant_im) or the link to your Twitter profile to verify\n\n \nGo!", /** Bot's name for notifications **/ "bot_name": "Lovely Bounty Bot", diff --git a/modules/configReader.js b/modules/configReader.js index b14088c..da1a967 100644 --- a/modules/configReader.js +++ b/modules/configReader.js @@ -100,6 +100,13 @@ try { // exit(`Bot's ${address} config is wrong. To run Twitter campaign, set Twitter API credentials (twitter_api). Cannot start Bot.`); } + // Create reward list + config.rewards_list = config.rewards + .map(t => { + return `${t.amount} ${t.currency}`; + }) + .join(' + '); + // Process help_message as a template literal config.twitter_follow_list = config.twitter_follow.join(', '); config.twitter_retweet_w_comment_list = config.twitter_retweet_w_comment.join(', ');