diff --git a/src/games/letters.js b/src/games/letters.js index d884712..684aedd 100644 --- a/src/games/letters.js +++ b/src/games/letters.js @@ -151,7 +151,7 @@ function onCommand(args, context) { } function onMessage(message, context) { - const game = games.get(context.room.id); + const game = games.get(context.room?.id); if (message.type !== 'message' || context.user?.id === config.user?.id) { // stop listening to yourself return;