Building a Slack bot in Node
I was looking into how to build a simple Slack bot. I ran across various bot kits and frameworks and whatnot, that seemed to really overcomplicate the issue. Went back to the Slack API and discovered that it's actually quite straightforward.
This particular code listens for messages in a private channel called 'dev'. Private channels are called 'Groups' in the Slack API.
The bot listens for messages, looks fo the text 'ping' and responds 'pong'. Â The rest is up to you!