This simple script written in basic Python will allow you to hook into the real time API of Slack and perform a greeting to every new joiner! Usually this is used to tell new joiners about the network, the guidelines, rules, useful links etc etc
If you like this project and you use it for your community or anything else, please hit the STAR button ⭐️ on the top right side so I know you dig it! It makes me feel appreciated and it's free.
This fork was created for the following reasons:
- Use a hardcoded
WELCOME_MESSAGE.txt
in code, as opposed to an environment variable. - Add the python
logging
module. - Bump the
websocket-client
package version to avoid a bug. - Add the ability to debug via a special channel that sends welcome message when joined.
Notes:
- This branch,
develop/archivers
, auto-deploys to Heroku. We recommend submitting changes to this branch via pull request. - We use a bot user, in fact, this little guy (sign-in required).
Python 2.7+
Edit bot.py
on lines 7-8 to customise with your greeting and token
git clone <thisgitrepo>
cd <thisgitrepo>
virtualenv greetingslack
. greetingslack/bin/activate
pip install requests
pip install websocket-client
python bot.py &
If you create a channel named #greetingslack
, then the bot will send
you a message every time you join it.
Deploy with a click supported now
🔥 DONT FORGET TO SCALE YOUR FREE DYNO