Commit c28aef3f authored by Tulir Asokan's avatar Tulir Asokan 🐈
Browse files

Add support for encrypted rooms

parent 8f9506b0
......@@ -123,6 +123,7 @@ class DisruptorBot(Plugin):
self.log.info(f"{n} posts cached from {subreddit}")
@event.on(EventType.ROOM_MESSAGE)
@event.on(EventType.ROOM_ENCRYPTED)
async def monologue_detector(self, evt: MessageEvent) -> None:
monologue = self.monologue_size.setdefault(evt.room_id, MonologueInfo())
if monologue.is_outdated(self.config["max_monologue_delay"]):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment