update readme and notify the notification_room properly with @room
This commit is contained in:
parent
4fe90ec5e0
commit
a1f8774f35
|
@ -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.
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue