A Slack bot written in Python 3. Requires Python 3.4
Using a mapping dictionary with callbacks to function calls:
- create/vote/edit polls for your team to decide on tasks/delegation
- choose among the interns on your team who has to do a task (manually added)
- bot message deletion available
- bot can private message team members
- add quotes of your co-workers
- generate memes/gifs from various APIs
- auto-restart
Currently does not support sub-threads via messages
- clone the repo
- login to slack and go to
https://<TEAMNAME>.slack.com/apps/build/custom-integration
- click
bots
and choose a username, clickadd bot integration
- make an entry in your environment variables for
slack_token
and set the generated token - (optional) make a newline delimited text file called 'EN_dict.txt' and put it into the root dir, such as one from: here to allow for distraction functionality
- (optional) add partyparrot files to slack team
- run with
python gotobot.py
- clone the repo
- login to slack and go to
https://<TEAMNAME>.slack.com/apps/build/custom-integration
- click
bots
and choose a username, clickadd bot integration
- make a file called
token.txt
in the same directory as the bot file and put the bot slack api key inside - run with
python baseBot.py
Heroku Free Tier allows for constant running bots with $0 costs, but they sleep after 30 minutes of inactivity
The Procfile is bot
so scaling for step 4 should match bot=1
otherwise heroku will build but not run the application
- create heroku account
- download heroku toolbelt and login locally
- configure python buildpack for heroku stack (via terminal or web gui)
- scale the dyno to tell remote what to run when deployed
$ heroku ps:scale bot=1 --app=<APPNAME>
- deploy through heroku or push a change (setup deploy settings via web gui)
5a. if there is an issue building/deploying:
$ heroku logs --app=<APPNAME>