Skip to content

Commit

Permalink
Spoil usernames in whodunnit answers
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Oct 20, 2024
1 parent 5e6bcdb commit a18c585
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/bot/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,13 @@ export class KunaBot {
const authors = entries.map(e => e.user);
authors.sort();

const questions = `Who defined which word? (${authors.join(', ')})\n\n${entries.map((e, i) => `${i + 1}. **${e.head}**`).join('\n')}`;
const answers = `Answers:\n\n${entries.map((e, i) => `${i + 1}. **${e.head}** ← ${e.user}`).join('\n')}`;
const poq = authors.join(', ');
const toa = entries.map((e, i) => `${i + 1}. **${e.head}**`).join('\n');
const tiaotei = entries
.map((e, i) => `${i + 1}. **${e.head}** ← ||${e.user}||`)
.join('\n');
const questions = `Who defined which word? (${poq})\n\n${toa}`;
const answers = `Answers:\n\n${tiaotei}`;

this.hostQuiz(interaction, questions, answers);
}
Expand Down

0 comments on commit a18c585

Please sign in to comment.