This is the relevant code associated with the Unicorn Utterances blog post about making a Slack Bot using MongoDB and Node:
https://unicorn-utterances.com/posts/making-a-slack-bot-with-node-and-mongo/
You can see a quick demonstration of the project here:
Ultimately, there are multiple revisions of this project in this repo that build on each other until the final version:
- The basic event listener
- The interactive base code, to be filled in during live coding
- The finalized interactive code
- The base code to connect to Mongo to be filled in during live coding
- The final MongoDB code for the project
Contact Me!
I wrote this blog post and code in order to give a talk live for a Slack Meetup. If you're interested in me giving the same talk (or even a revised one), reach out to me on Twitter.