Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.31 KB

README.md

File metadata and controls

68 lines (43 loc) · 1.31 KB

Hubot Oisietekun

詳しい人を教えてくれるhubot script

Build Status

screen shot

Install

% npm i hubot-osietekun -save

edit external-script.json

["hubot-osietekun"]

Requirements

  • coffee-script 1.8+
  • hubot-brain

Usage

教わる

% hubot 教えて react

教える

% hubot 教えます ruby
% hubot 教えません php

Extend

hook "osietekun:ready" and "response" event.

robot.on 'osietekun:ready', (osietekun) ->

  osietekun.on 'response', (msg, res) ->
    if res.masters.length < 1
      for word in res.words
        msg.send "#{word}については http://your-great-wiki-site.com/#{word} を見るといいかも"

  osietekun.on 'register:teacher', (msg, query) ->
    msg.send "http://your-great-wiki-site.com/#{query.word} に書いてもいいんだよ"

Test

% npm test
# or
% npm run watch