From a1f8774f355c7e25e28951f8f07204d6bfdf04d4 Mon Sep 17 00:00:00 2001 From: William Kray Date: Thu, 23 Jun 2022 13:21:34 -0700 Subject: [PATCH] update readme and notify the notification_room properly with @room --- README.md | 5 +++++ welcome.py | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fdebdf3..3ddf485 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # welcome bot +bot that watches specific rooms, and will send a customizable message to those rooms when someone joins them. + +optionally, will send a room message (with @room in it!) to a separate notification room, i.e. to alert a group of +people that a new member has joined one of the watched rooms. + diff --git a/welcome.py b/welcome.py index 8f7f3ba..2372452 100644 --- a/welcome.py +++ b/welcome.py @@ -30,11 +30,10 @@ class Greeter(Plugin): if evt.source & SyncStream.STATE: return else: - #await self.client.send_markdown(evt.room_id, self.config["message"], allow_html=True) await self.client.send_notice(evt.room_id, html=self.config["message"]) if self.config["notification_room"]: await self.client.send_markdown(self.config["notification_room"], f"User {evt.sender} joined \ - {evt.room_id}") + {evt.room_id} and I want everyone in this @room to know")