initial commit

This commit is contained in:
Christoffer Müller Madsen 2016-02-22 14:50:42 +01:00
commit 20ddf9fe43

13
jonbot.js Normal file
View File

@ -0,0 +1,13 @@
var Botkit = require('botkit');
var controller = Botkit.slackbot();
var bot = controller.spawn({
token: process.argv[2]
})
bot.startRTM(function(err,bot,payload) {
if (err) {
throw new Error('Could not connect to Slack');
}
});
controller.hears(["jonbot?","^pattern$"],["direct_message","direct_mention","mention","ambient"],function(bot,message) {
bot.reply(message,':clap: JOOOOON! :clap:');
});