This is a simple Slackbot is meant to help organize your weekly schedule with handy notifications for upcoming assignments/exams!
Supports the following commands:
If you wish to run/install this Slackbot, you will need to have installed python and optionally virtualenv
$ brew install python3
$ brew install postgresql
$ pip3 install virtualenv
Next, clone this repo and optionally activate/enter the virtualenv
$ virtualenv bot
$ source bot/bin/activate
Install python dependencies using pip
(bot) $ pip install -r requirements.txt
Populate your OAuth Tokens & Postgres database configurations inside secrets.json
- See
templates/secrets.template.jsonfor the expected format/information (fill with your variables as you see fit)
$ mkdir secrets
$ vim secrets/secrets.json
<INSERT BOT SECRETS>
Run the bot (WIP)
(assignment-bot) $ python3 assignment_bot.py
Lists the help menu detailing the acceptable commands
Lists the given assignments, filtered by provided commmand:
listORlist-all- Lists ALL assignments, completed or not, in a formatted table
list-completed- Only lists assignments marked/entered as completed
list-todo- Only lists assignments that are still pending
list
list-all
list-completed
list-todo
Adds a given assignment to the database with a corresponding due date
add [assignment] [due-date]
Example:
add Project 5 - The Traveling Salesman 11/07
Removes an assignment from the database
remove [assignment]
Example:
remove Project 5 - The Traveling Salesman
Marks a given assignment as completed (updating the completed columm to TRUE)
complete [assignment]
Example:
complete Project 5 - The Traveling Salesman
Updates a given assignment, updating a specific field for the corresponding assignment WIP