Skip to content

Commit

Permalink
Improve leader list text
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford committed Sep 18, 2019
1 parent f781322 commit 6a1c9f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/interactions/leaderList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 9 additions & 3 deletions src/text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
leader: "\n- <@${this.leader.fields['Slack ID']}>"

0 comments on commit 6a1c9f9

Please sign in to comment.