Skip to content

Latest commit

 

History

History
96 lines (63 loc) · 3.49 KB

doc.md

File metadata and controls

96 lines (63 loc) · 3.49 KB

nf.chatbot

Chat ops

개발도구를 일상(업무적인) 대화속으로 끌어들임으로써, 팀의 일을 서로 협력하고, 자동으로, 싸고 빠르게 할 수 있게 만들어 준다.

bot 프로그램들

hubot

hubot - Pros

  • (그나마) 믿을 수 있는 github의 프로젝트.
  • 어쩔 수 없이, node.js위에 돌아간다고 하더라도, javascript를 쓰지않고, coffeescript를 쓴점.
  • adapter로 추상화를 해놔서, 챗팅프로그램이 변경되더라도 (비교적) 간단하게 교체가능.

hubot - Cons

  • fucking javascript(coffeescript)

구조

bin/                  | 휴봇 실행파일 위치.
node_modules/         | pacakge.json을 이용하여 설치된 패키지들이 있는 폴더
scripts/              | 사용자 정의 스크립트 파일 위치(.coffee, .js)
Procfile              | https://devcenter.heroku.com/articles/procfile
README.md             |
package.json          | npm을 사용하여 설치할 패키지선언 파일.
hubot-scripts.json    | npm의 `hubot-scripts`에 실려있는, community script들을 선언하는 파일
external-scripts.json | 추가로 로드할 npm 패키지들.

설치

    # npm 업그레이드
    npm install -g npm

    # dependencies
    npm install -g coffee-script hubot yo generator-hubot

    # generate
    mkdir hubot && cd hubot && yo hubot

    # hubot 실행
    bin/hubot

   # 한국어 regexp : [가-힇ㄱ-ㅎㅏ-ㅣ]

ref