Created
May 14, 2016 10:00
-
-
Save perfectmak/22af06d57bc0929a2412ab33784dbe38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pinger = require('./ping-bot'); | |
//listen for direct message and direct mention events | |
controller.on(['direct_message', 'direct_mention'], (bot, message) => { | |
pinger(message.text, (response) => { | |
//send message reply to users | |
bot.reply(message, response); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment