update readme and notify the notification_room properly with @room

This commit is contained in:
William Kray 2022-06-23 13:21:34 -07:00
parent 4fe90ec5e0
commit a1f8774f35
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

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