Removed Jeopardy questions containing URLs. Including first letter in first hint.
This commit is contained in:
@@ -59,14 +59,14 @@ async function playRound(context, round = 0) {
|
||||
});
|
||||
|
||||
// replace space with U+2003 Em Space to separate words, since a single space separates the placeholders, and double spaces are removed during Markdown render
|
||||
context.sendMessage(`**${Math.floor(game.timeout / 3) * 2} seconds** left, first hint for round ${round + 1}/${game.questions.length}: ${question.answer.replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}`, context.room.id);
|
||||
context.sendMessage(`**${Math.floor(game.timeout / 3) * 2} seconds** left, first hint for **round ${round + 1}/${game.questions.length}**: ${question.answer.slice(0, 1)}${question.answer.slice(1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}`, context.room.id);
|
||||
|
||||
await timers.setTimeout((game.timeout / 3) * 1000, null, {
|
||||
signal: ac.signal,
|
||||
});
|
||||
|
||||
if (question.answer.length > 3) {
|
||||
context.sendMessage(`**${Math.floor(game.timeout / 3)} seconds** left, second hint for round ${round + 1}/${game.questions.length}: **${question.answer.slice(0, 1)} ${question.answer.slice(1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}${question.answer.slice(-1)}**`, context.room.id);
|
||||
context.sendMessage(`**${Math.floor(game.timeout / 3)} seconds** left, second hint for **round ${round + 1}/${game.questions.length}**: **${question.answer.slice(0, 1)} ${question.answer.slice(1).replace(/\s/g, ' ').replace(/[^\s]/g, '_ ')}${question.answer.slice(-1)}**`, context.room.id);
|
||||
}
|
||||
|
||||
await timers.setTimeout((game.timeout / 3) * 1000, null, {
|
||||
|
||||
Reference in New Issue
Block a user