Added ping and duck, showing category in trivia.
This commit is contained in:
@@ -50,7 +50,7 @@ async function playRound(context, round = 0) {
|
||||
|
||||
const question = game.questions[round];
|
||||
|
||||
context.sendMessage(`**Question ${round + 1}/${game.questions.length}**: ${question.question}`, context.room.id);
|
||||
context.sendMessage(`**Question ${round + 1}/${game.questions.length}** (${question.category}): ${question.question}`, context.room.id);
|
||||
context.logger.info(`Trivia asked "${question.question}" with answer: ${question.answer}`);
|
||||
|
||||
try {
|
||||
@@ -163,7 +163,7 @@ function onCommand(args, context) {
|
||||
}
|
||||
|
||||
async function onMessage(message, context) {
|
||||
if (!game) {
|
||||
if (!game || context.user.id === config.user.id) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user