Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Botkitを使ってSlackの応答を返す
var Botkit = require('botkit');
var controller = Botkit.slackbot({
debug: false
});
controller.spawn({
token: process.env.token
}).startRTM();
// say techium
controller.hears('techium',['direct_message','direct_mention','mention'],function(bot,message) {
console.log(message);
bot.reply(message,'Hello, techium.');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.