diff --git a/src/games/trivia.js b/src/games/trivia.js index 2590bea..9e69597 100644 --- a/src/games/trivia.js +++ b/src/games/trivia.js @@ -166,7 +166,7 @@ function onCommand(args, context) { } async function onMessage(message, context) { - if (!game || context.user.id === config.user.id) { + if (!game || context.user?.id === config.user?.id) { return; }