Why hire a doorman when you can build one?
pip install thedoorman
Edit slackbot_settings.py
:
- Update
team_name
as appropriate - Update
bot_name
as appropriate - Either uncomment and include your bot's API token or identify it in your environment via the variable
SLACKBOT_API_TOKEN
- Set the environment variable DOORBELL_SOUND to the path to a mp3 file to be played when the doorbell rings.
- Set the environment variable $SPEECH_SCRIPT to a script which does text to speech. Several examples are in the misc directory.
python run.py
- Edit start-doorman.sh, setting the python3 interpreter and install directory if necessary, and setting any environment variables needed.
- Edit doorman.service, adjusting the paths as necessary.
- Install doorman.service: % sudo cp doorman.service /lib/systemd/system/ % sudo chmod 644 /lib/systemd/system/doorman.service % sudo systemctl daemon-reload % sudo systemctl enable doorman
- Reboot