This bot maintains a quote list that is queried through Slack.
Add a quote via:
/quotelist add NAME QUOTE
where NAME is the person who said the quote, and QUOTE is the quote.
Find a quote via:
/quotelist NAME
A random quote in the database by NAME will be returned in Slack. If no quotes match the query, the quote bot will tell you that the person has no quotes.
NOTE: I learned to create my first slackbot via Andrew Mager's How to Write a Slackbot in 40 lines of code, and so a lot of the infrastructure is taken from that tutorial.
- open a nodeJS Cloud9 workspace
- with this repo cloned
- Set up Mlabs Account
- Set up a Heroku instance
- Connect the instance with this repo and push
- set up environmental variable on heroku for MONGO_URL
- Set up connection on Slack integration
- Refresh slack and try it out
- heroku logs -t
- console.log
- when changing features and repushing to Heroku
git status
git add <filename>
git push heroku master
- should see
build succeeded
message
- should see
/quotelist add
will return an error- No way to modify quotes once entered
- No way to attribute quotes to a name with a space in it. i.e
/quotelist add Dan A "This is my quote"
will enterA "This is my quote."
into the database underDan
. - No way to attribute a quote to two or people at once
- Perhaps an error with when quotation marks show up in database vs Slack channel?