https://github.com/netpro2k/hubot-skype#installation
上記URLに従ったけれどうまく動かない。
https://github.com/netpro2k/hubot-skype#os-specific-notes
また上記URLにある通りexport VERSIONER_PYTHON_PREFER_32_BIT=yes
はしてある。
環境
- Mac OSX 10.8.2
% node -v
v0.9.11
% npm -v
1.2.2
% ./bin/hubot --version
2.4.7
% npm list (git)-[-master][ ~/work/hubot]
hubot@2.4.7 /Users/ONDA/work/hubot
├── coffee-script@1.4.0
├─┬ connect@2.3.4
│ ├── bytes@0.0.1
│ ├── cookie@0.0.4
│ ├── crc@0.2.0
│ ├── debug@0.7.2
│ ├── formidable@1.0.11
│ ├── fresh@0.0.1
│ ├── mime@1.2.4
│ ├── qs@0.4.2
│ └── range-parser@0.0.4
├── connect_router@1.8.6
├── hubot-skype@0.0.2
├── log@1.3.0
├── optparse@1.0.3
実行結果
% ./bin/hubot -a skype
[Tue Mar 05 2013 12:45:38 GMT+0900 (JST)] ERROR Cannot load adapter skype - Error: Cannot find module 'hubot'
TypeError: Cannot call method 'on' of null
at Object.<anonymous> (/Users/ONDA/work/hubot/bin/hubot:136:19)
at Object.<anonymous> (/Users/ONDA/work/hubot/bin/hubot:140:4)
at Module._compile (module.js:449:26)
at Object.exports.run (/Users/ONDA/.nodebrew/node/v0.8.18/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:82:25)
at compileScript (/Users/ONDA/.nodebrew/node/v0.8.18/lib/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
at fs.stat.notSources.(anonymous function) (/Users/ONDA/.nodebrew/node/v0.8.18/lib/node_modules/coffee-script/lib/coffee-script/command.js:152:18)
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)
普通に起動するぶんには動く
% ./bin/hubot (git)-[-master][ ~/work/hubot]
Hubot> hubot help
Hubot> Events:
debug - {user: <user object to send message to>}
hubot <user> is a badass guitarist - assign a role to a user
hubot <user> is not a badass guitarist - remove a role from a user
hubot animate me <query> - The same thing as `image me`, except adds a few parameters to try to return an animated GIF instead.
hubot convert me <expression> to <units> - Convert expression to given units.
hubot die - End hubot process
hubot echo <text> - Reply back with <text>
hubot fake event <event> - Triggers the <event> event for debugging reasons
hubot help - Displays all of the help commands that Hubot knows about.
hubot help <query> - Displays all help commands that match <query>.
hubot image me <query> - The Original. Queries Google Images for <query> and returns a random top result.
hubot map me <query> - Returns a map view of the area returned by `query`.
hubot math me <expression> - Calculate the given expression.
hubot mustache me <query> - Searches Google Images for the specified query and mustaches it.
hubot mustache me <url> - Adds a mustache to the specified URL.
hubot ping - Reply with pong
hubot pug bomb N - get N pugs
hubot pug me - Receive a pug
hubot show storage - Display the contents that are persisted in the brain
hubot show users - Display all users that hubot knows about
hubot the rules - Make sure hubot still knows the rules.
hubot time - Reply with current time
hubot translate me <phrase> - Searches for a translation for the <phrase> and then prints that bad boy out.
hubot translate me from <source> into <target> <phrase> - Translates <phrase> from <source> into <target>. Both <source> and <target> are optional
hubot who is <user> - see what roles a user has
hubot youtube me <query> - Searches YouTube for the query and returns the video embed link.
Hubot>
対応方法をググってみたページ
時間をみて動くようにしたい。