From f75ac91e06d5e38e4dbace95ee794f16de6a0729 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Thu, 29 Dec 2022 21:51:38 -0700 Subject: [PATCH] Add a hint to the !fixusers response --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index d470146..7b5d291 100644 --- a/main.js +++ b/main.js @@ -518,7 +518,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti } if (event.getContent().body.toLowerCase().startsWith("!fixusers")) { - sendMatrixNotice(event.getRoomId(), "Inviting missing users across all SMS chats."); + sendMatrixNotice(event.getRoomId(), "Inviting missing users across all SMS chats. You may need to run this command several times, there's a server limit to how many invites can be sent at once."); client.getJoinedRooms().then(function (rooms) { var roomlist = rooms.joined_rooms; @@ -543,7 +543,7 @@ client.login("m.login.password", {"user": settings.matrixuser, "password": setti sendMatrixNotice(event.getRoomId(), "Malformed command detected, ignoring."); return; } - + var matches = room.name.match(/SMS_([1-9][0-9]+)(?:_([1-9][0-9]+))?/g); console.log(event.getRoomId()); if (matches == null || (matches.length != 1 && matches.length != 2)) {