mmpy_bot icon indicating copy to clipboard operation
mmpy_bot copied to clipboard

Send a message direct to user who joins room

Open SpeedyH30 opened this issue 2 years ago • 2 comments

I've had a look through the docs and I'm struggling to see how to get the info to dm a user who is new to a channel.

The reason is I would like the bot to DM the user who has just joined a few bits of info. This is to keep the chat clean and free of spam, I would use ephemeral messages but the bot cant have admin rights on the server. Is what I'm trying to do possible? You get the @name from the system when a new user joins. any help would be appreciated

SpeedyH30 avatar Feb 08 '23 17:02 SpeedyH30

Hi @SpeedyH30

I haven't tried using them myself but in principle it should be possible. The question is if those notifications are received by the bot as Messages or as a different type of event.

I don't currently have time to dig into this but you should be able to get some info from the bot by running it in debug mode or inspecting the types of Messages received.

unode avatar Mar 06 '23 09:03 unode

See #386 for possible ways to implement this.

unode avatar May 09 '23 09:05 unode