phpmx / phpmxbot

A Slack bot for the PHP Mexico Community.
3 stars 7 forks source link

Add Greeter functionality #14

Closed eruizdechavez closed 3 years ago

eruizdechavez commented 3 years ago

I believe someone mentioned that we could use the bot also to welcome new members that join the community. This can be done very easily by adding an event handler for workspace join, or simply by adding a channel join listener for #general (all members must be at the very least in this channel.

Some highlights that can be useful:

eruizdechavez commented 3 years ago

With the events API we can monitor team_join event and send a direct message.

https://api.slack.com/events/team_join

For custom channel messages we can just use the regular chanel_join event and a custom message for that channel.

The messages should be on a greeter table, and the initial (default) messages should be part of a migration.

eruizdechavez commented 3 years ago

This is a parent of #16.