Added PM support to chat.
This commit is contained in:
@@ -145,7 +145,7 @@ function onCommand(args, context) {
|
||||
}
|
||||
|
||||
function onMessage(message, context) {
|
||||
if (games.has(context.room.id)) {
|
||||
if (games.has(context.room?.id)) {
|
||||
const letter = message.body.match(/^\s*\w\s*$/)?.[0];
|
||||
const word = message.body.match(/^\s*\w{2,}\s*$/)?.[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user