A Slack bot that manages employee PTOs.
I made this during my work experience at Workday.
What's a PTO?
Paid time off or personal time off (PTO) is a policy in some employee handbooks that provides a bank of hours in which the employer pools sick days, vacation days, and personal days that allows employees to use as the need or desire arises.
- Wikipedia
The bot stores PTOs on Google Calendar, and uses api.ai for it's natural language processing. If you'd like the training data for the api.ai agent, email me, or make your own. (You'll have to run the bot on your own server.)
This project is under the MIT license.
Create a Slack integration (a bot user) on your team, and an api.ai account. Put those keys in holiday_bot/slackbot_settings.py
.
Before you run it, you should install the code (including your configuration):
python setup.py install
Whenever you change your configuration, you'll have to install the code again. And then run it like this:
python holiday_bot/run.py
Technically, I suppose you could say this repo has tests. You can run them by:
python setup.py test