$ git clone git@github.com:aanoaa/Hongbot.git
$ cd Hongbot/
$ carton install # Carton 이 설치되어 잇어야..$ vim conf/hongbot.conf # 서버, 채널, password 등을 변경해야..$ ./run
hubot
Github에서 공개한 CoffeeScript 로 쓰여진 node.js 기반의 bot
입니다. core인 hubot 이 있고 hubot-scripts
를 통해 확장 가능합니다. adapter 를 설정해서 irc 뿐만아니라 campfire,
gtalk 에서도 사용가능 합니다. 물론 adapter 또한 확장 가능 합니다.
# evaluate code.## eval me <lang> <code> - evaluate <code> and show the result.module.exports = (robot) ->robot.respond/eval( me)? ([^ ]+) (.+)/i,(msg) ->msg.http("http://api.dan.co.jp/lleval.cgi").query(s: "#!/usr/bin/#{msg.match[2]}\n#{msg.match[3]}").get()(err, res, body) ->out = JSON.parse(body)msg.sendifout.stderrthenout.stderrelseout.stdout
네 hubot 이 훨씬 단순합니다.
core 의 설계가 더 유연하고 잘되어 있어서 그렇다고 생각합니다.
Hongbot은 저혼자 하고 hubot은 세계의 여러 해커들이
참여하는 프로젝트니까 뭐 비교하면 저만
초라해집니다. Hongbot의 core 를 업그레이드 시켜서
hubot 만큼 단순하게 plugin 을 작성할 수 있게 하면 좋은 plugin
들이 많이 생겨날 것으로 생각합니다. repo 와 deploy 디렉토리를 따로
둘수 있게 만든 점 또한 hubot++ 입니다. 배울게 참 많습니다.