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