Skip to content
tily edited this page Mar 18, 2015 · 2 revisions

Welcome to the hubot-rec wiki!

TODO

  • ln -s .. node_modules/hubot-rec
  • hubot スクリプト内で自分で bot を立ち上げたい場合?
  • hubot-rec 内で yo hubot-script で rec で作り直す
  • upload 部分のプラグイン化
  • どこにアップロードしたのかを brain に記録する
  • error handling of uploading
  • テストを書く
  • web 画面
  • npm 登録 & publish
  • ブログ or qiita の記事を書く?
    • フロー情報を切り取ってストック情報として残しておきたいような場合に
    • twitter ログのまとめとか?
    • メンテナンス時
  • 0.0.0 をできれば yank したい
    • memo.md とかはいってしまってるので
  • uploadRec
uploadRec = (rec, msg)->
  # TODO: make pluggable
  markdown = ejs.render tmpl, rec: rec, moment: moment
  console.log markdown
  data = JSON.stringify
    description: rec.title
    public: true
    files:
      "chat.md":
        content: markdown
  msg.robot.http("https://api.github.com/gists")
    .post(data) (err, res, body) ->
      json = JSON.parse(body)
      msg.send "uploaded to: " + json['html_url']
Clone this wiki locally