yyyy-mm-dd | js | gif | name | url |
---|---|---|---|---|
2014-07-14 | [ ] | [ ] | hubot-gengo | https://github.com/bouzuya/hubot-gengo |
2014-07-15 | [ ] | [ ] | hubot-lgtm | https://github.com/bouzuya/hubot-lgtm |
2014-07-16 | [ ] | [ ] | hubot-retweet | https://github.com/bouzuya/hubot-retweet |
2014-07-17 | [ ] | [x] | https://github.com/bouzuya/hubot-merge-pr | |
2014-07-18 | [ ] | [ ] | hubot-omikuji | https://github.com/bouzuya/hubot-omikuji |
2014-07-19 | [ ] | [ ] | hubot-tweet | https://github.com/bouzuya/hubot-tweet |
2014-07-20 | [ ] | [ ] | hubot-fav | https://github.com/bouzuya/hubot-fav |
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
var Promise = require('q').Promise; | |
var fs = require('fs'); | |
var path = require('path'); | |
var S3 = require('aws-sdk').S3; | |
var readFile = function(file, options) { | |
var opts = (options || {}).text ? { encoding: 'utf-8' } : {}; | |
return fs.readFileSync(file, opts); | |
}; |
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
{Promise} = require 'q' | |
{Robot, TextMessage} = require 'hubot' | |
class RobotDriver | |
TIMEOUT = 100 # ms | |
constructor: -> | |
@robot = null # initialize in start() | |
@adapter = null # initialize in start() | |
@started = false |
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
for repo in $(cat <<EOT | |
hoge | |
fuga | |
piyo | |
EOT) | |
do | |
echo 'command' | |
done |
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
// Description: | |
// Hello | |
// Commands: | |
// hubot hello - say hello! | |
module.exports = function(robot) { | |
robot.respond(/hello/i, function(res) { | |
res.send('Hello, Gist!'); | |
}); | |
}; |
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
# Description: | |
# Hello | |
# Commands: | |
# hubot hello - say hello! | |
module.exports = (robot) -> | |
robot.respond /hi/i, (res) -> | |
res.send 'Hi, Gist!' |
gist で blog って書けないのだろうか
blog が blog であるために必要なものは何だろう。
とりあえず条件をあげてみよう。
- article を見られる。
- article の一覧を見られる。
- それぞれの article が permalink を持つ。
- それぞれの article が tags を持つ。
- それぞれの article が pubdate を持つ。
- article の関連する article を見られる。
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
{ | |
"name": "blog.bouzuya.net@gist", | |
"description": "bouzuya's weblog using gist" | |
} |
hubot-gistlog-create をとりあえずつくった。
Shell Adapter だと改行を入れられないし、チャットで使うとなると個人別に設定できないので、実用性は微妙。
ローカルで Hubot を動かすための環境を整備したい。