Create a gist now

Instantly share code, notes, and snippets.

@kypkyp /bot1.js
Last active Dec 24, 2016

What would you like to do?
とても しんぷるな やつ
/* じっさいには トークンとか いろいろな初期設定がひつよう (ただし デフォルトのサンプルコードに のっとればOK)*/
controller.hears(['hi'], 'direct_message,direct_mention,mention,ambient', function(bot, message) {
if(message.channel === "********"){
bot.say({
channel:"C2Z3UJWAW",
text:"hello!",
username:"kyp_bot"
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment