Nano Framework for Slack to manage users. Offers a guessing game for users to get to know each other in your company.
Syncs users to a local Sqlite DB every hour.
Easily manage your local users when extending the bot:
User.get(slack_id='123')
User.phone = 0123456789
User.save()
Guessing game uses optional face recognition to filter out avatars that won't offer any value:
- Python (>= 3.6)
- Poetry
- OpenCV (should be installed by poetry, but if it fails due to ARM based platform, see here)
- Create App in Slack
- Add Bot for your App, Select
Basic Information, configure Display Name and Icon - Take note of
Bot User OAuth Access TokenfromOAuth & Permissions - Clone repo
- Add this token to an .env file:
SLACK_BOT_OAUTH_ACCESS_TOKEN='SECRET' - Install dependencies
poetry install - Run bot
python staff_bot.py - Use something like systemd to run this script permanently
