Add a hint to the !fixusers response

This commit is contained in:
Skylar Ittner 2022-12-29 21:51:38 -07:00
parent 88a7b12597
commit f75ac91e06

View File

@ -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)) {