Created
February 7, 2017 13:31
-
-
Save HayatoDoi/0cf4bdf521ede056cfde63d83c97c855 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
#!/usr/bin/env node | |
/* File name : syaroshikoBOT.js | |
* Author : Hayato Doi | |
* Last Update : 2017/2/7 | |
* Since : 2017/2/7 | |
* Outline : しゃろしこ!? | |
* node.js version : v6.9.5 | |
* Using the libraries : https://www.npmjs.com/package/slackbots | |
* license : CC0-1.0 | |
* Copyright (c) 2017, Hayato Doi | |
*/ | |
const SlackBot = require('slackbots'); | |
const bot = new SlackBot({ | |
token: 'xoxb-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', | |
name: 'しゃろしこおじさん' | |
}); | |
bot.on('start', () => { | |
let params = { | |
icon_emoji: ':coffee:' | |
}; | |
bot.postMessageToChannel('testbot', 'シャロちゃんのおぱんつドリップコーヒー', params); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment