Adding per-room whitelists to only allow some users to search
This commit is contained in:
@@ -31,6 +31,15 @@ searx.setRoomCooldowns(new Map([
|
||||
searx.setSearxInstance("https://searx.example.com");
|
||||
searx.setSearxParameters("disabled_engines=flickr__images");
|
||||
|
||||
searxng.setRoomUserWhitelists(new Map([
|
||||
["!blahblahblah:midov.pl",
|
||||
[
|
||||
"@q:glowers.club",
|
||||
"@midek:midov.pl"
|
||||
]
|
||||
]
|
||||
]));
|
||||
|
||||
matrixClient.on("Room.timeline", function(event, room, toStartOfTimeline) {
|
||||
if (event.getTs() >= startupTime && event.getType() == "m.room.message" && event.getContent().body != null) {
|
||||
|
||||
|
Reference in New Issue
Block a user