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")