/slack-random-picker-bot

Slack bot which picks a random person based on presence via network scanner. Run as root.

Primary LanguagePython

slack-random-picker-bot

Slack bot which picks a random person based on presence via network scanner. Run as root, otherwise mac addresses cannot be collected.

Requirements

sudo apt-get install python python-pip nmap daemon
sudo pip install python-nmap slackclient

Create slack API access token

This is well-explained as a part of this how to

Run

Try it first with

sudo python random-picker-bot.py

Then you can demonize it and add it to /etc/rc.local to start on boot. -r means respawn if it dies.

daemon -r sudo python random-picker-bot.py