From 6a1c9f9689109b3ff29703eb68866d0af98f473d Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Wed, 18 Sep 2019 15:05:54 -0400 Subject: [PATCH] Improve leader list text --- src/interactions/leaderList.js | 5 ++++- src/text.yml | 12 +++++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/interactions/leaderList.js b/src/interactions/leaderList.js index 339793d7..2ff83fa1 100644 --- a/src/interactions/leaderList.js +++ b/src/interactions/leaderList.js @@ -31,7 +31,10 @@ const interactionLeaderList = (bot, message) => { ) .then(leaders => { console.log(leaders) - bot.whisper(message, transcript('leaderList.leaders', { leaders })) + bot.whisper( + message, + transcript('leaderList.list', { leaders, channel }) + ) }) .catch(err => { throw err diff --git a/src/text.yml b/src/text.yml index ab3ce52d..b1938db9 100644 --- a/src/text.yml +++ b/src/text.yml @@ -97,7 +97,13 @@ leaderList: invalidUser: Only club leaders can use this command. invalidClub: I couldn't find your club. invalidChannel: This isn't your club channel. Please run this in a channel you lead. - leaders: > - \*Club leaders in <#${this.channel}>* + leaderFlavor: + - leaders + - big bosses + - head honchos + - rulers + - commanding officers + list: > + \*The ${this.text('leaderList.leaderFlavor')} of <#${this.channel}>:* ${this.leaders.map(leader => this.text('leaderList.leader', { leader } ))} - leader: "- <@${this.leader.fields['Slack ID']}>\n" \ No newline at end of file + leader: "\n- <@${this.leader.fields['Slack ID']}>" \ No newline at end of file