netpro2k / hubot-skype Goto Github PK
View Code? Open in Web Editor NEWSkype adapter for hubot
License: MIT License
Skype adapter for hubot
License: MIT License
My bot running on CentOS 6.4(final).
Bot is belonged to 5 rooms, and works fine.
But when i added bot into new room, bot doesn't respond by any script (ex: hubot echo hoge).
However,bot is responding in other room(first 5room).
Is there an upper limit of the room Hubot-Skype
? only 5?
Hi
I'm currently trying to setup hubot with the hubot-skype adapter on an Ubuntu 12.x server with a headless skype. So far, it seems that skype is running fine (can connect to it thorugh vnc with x11vnc), I have added the corresponding permissions for Skype4Py and setup all necessary hubot modules.
The hubot instance is running fine with -a skype, however, the bot does not react to any messages sent to him. If I put some debug statements directly in the skype.coffee
adapter implementation, it seems that messages are intercepted just fine (in the run method). However, the bot does not post any messages in a chat.
Any ideas on how I could debug this further or what the issue might be?
npm --version
1.2.14
node --version
v0.10.0
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
/opt/hubot/bin/hubot --version
2.4.8
Noticed that.. after a delay (say hour).. if I do
hubot ping
it doesn't reply..
I have to do
hubot ping
again to get PONG back
so hubot doesn't reply to first message. (this happens after you don't use hubot for like hour or so)
Due to the nature of the documentation, i find it very hard to install properly. So this ticket is mainly for improving the documentation, until it can be improved with a pull request.
My observations so far :
Trying to install this on a mac mini at work. Getting problems trying to run with skype adapter.
$ ./bin/hubot -a skype
[Tue Jan 29 2013 10:27:45 GMT-0700 (MST)] ERROR Cannot load adapter skype - TypeError: Cannot read property 'prototype' of undefined
TypeError: Cannot call method 'on' of null
at Object.<anonymous> (/Users/hubot/sc-hubot/node_modules/hubot/bin/hubot:105:19)
at Object.<anonymous> (/Users/hubot/sc-hubot/node_modules/hubot/bin/hubot:109:4)
at Module._compile (module.js:449:26)
at Object.exports.run (/Users/hubot/sc-hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25)
at compileScript (/Users/hubot/sc-hubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
at fs.stat.notSources.(anonymous function) (/Users/hubot/sc-hubot/node_modules/hubot/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)
$ node --version
v0.8.18
$ npm --version
1.2.2
$ npm list
[email protected] /Users/hubot/sc-hubot
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]
Is it possible to deploy hubot-skype on heroku and what stack do you need to use on heroku?
Skype Desktop API is dead, and developer page is gone.
https://developer.skype.com/
So, hubot can't work anymore on Skype.
but, if your bot joined room until july 20th(this date is inference), bot can work.
After installing hubot-skype as a dependency via git, and having installed Skype4Py, running bin/hubot -a skype
causes the following:
hubot % bin/hubot -a skype
[Fri Jun 01 2012 15:07:58 GMT-0700 (PDT)] INFO Loading scripts from hubot/scripts
[Fri Jun 01 2012 15:07:58 GMT-0700 (PDT)] INFO Loading scripts from hubot/src/scripts
ERR
execvp(): No such file or directory
child process exited with code 127
[Fri Jun 01 2012 15:07:58 GMT-0700 (PDT)] INFO Loading hubot-scripts from hubot-scripts/src/scripts
The "sys" module is now called "util". It should have a similar interface.
[Fri Jun 01 2012 15:07:58 GMT-0700 (PDT)] INFO Successfully connected to Redis
Running with the default adapter causes no error. No request from Skype (which is open) comes up to request API access as mentioned in the README. There would appear to be an execvp problem.
Attempting to run hubot on OS X with Python 2.7 (Python3 was unable to install Skype4Py due to parsing errors) and the latest version of node
EDIT: attempted again on an Ubuntu box with Node/Python both installed via apt-get. Exact same error as above with execvp()
Get this as soon as I run bin/hubot -a skype
:
ERROR Lost connection with Skype... Exiting
On OSX Mountain Lion, Hubot 2.6.3
Is the adapter not available (or ready) for usage yet?
hubot % npm install hubot-skype
npm http GET https://registry.npmjs.org/hubot-skype
npm http 404 https://registry.npmjs.org/hubot-skype
npm ERR! 404 'hubot-skype' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
npm ERR!
npm ERR! System Darwin 12.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "hubot-skype"
npm ERR! cwd /Users/david/Code/DECK_Monitoring/hubot
npm ERR! node -v v0.6.18
npm ERR! npm -v 1.1.22
npm ERR! code E404
npm ERR! message 404 Not Found: hubot-skype
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/david/Code/DECK_Monitoring/hubot/npm-debug.log
npm not ok
This is probably something silly, but I can't figure it out. Installed hubot, then added hubot-skype to hubot's package.json:
{
"name": "hubot",
"version": "2.4.6",
"author": "hubot",
"keywords": ["github","hubot","campfire","bot"],
"description": "A simple helpful Robot for your Company",
"licenses": [{
"type": "MIT",
"url": "http://github.com/github/hubot/raw/master/LICENSE"
}],
"repository" : {
"type": "git",
"url": "https://github.com/github/hubot.git"
},
"dependencies": {
"hubot-skype": "git://github.com/netpro2k/hubot-skype.git",
"coffee-script": "~> 1.4.0",
"optparse": "1.0.3",
"scoped-http-client": "0.9.7",
"log": "1.3.0",
"connect": "2.3.4",
"connect_router": "1.8.6"
},
"engines": {
"node": ">= 0.8.x",
"npm": "1.1.x"
},
"main": "./index",
"bin": {
"hubot": "./bin/hubot"
}
}
When I try to run using the skype adapter I get the following:
$ bin/hubot -a skype
[Mon Jan 28 2013 23:54:01 GMT-0700 (MST)] ERROR Cannot load adapter skype - Error: Cannot find module 'hubot'
TypeError: Cannot call method 'on' of null
at Object.<anonymous> (/Users/brianwigginton/Projects/hubot-master/bin/hubot:136:19)
at Object.<anonymous> (/Users/brianwigginton/Projects/hubot-master/bin/hubot:140:4)
at Module._compile (module.js:449:26)
at Object.exports.run (/usr/local/share/npm/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:83:25)
at compileScript (/usr/local/share/npm/lib/node_modules/coffee-script/lib/coffee-script/command.js:177:29)
at fs.stat.notSources.(anonymous function) (/usr/local/share/npm/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)
Here's the npm modules I have installed:
$ npm list
[email protected] /Users/brianwigginton/Projects/hubot-master
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Hello,
There is a strange error on CentOS 6.3 with Ruby 1.9.3 with the latest patchset -> on bin/hubot -a skype I get the following error trace:
ERROR Cannot load adapter skype - TypeError: Object # has no method 'robot'
TypeError: Object # has no method 'robot'
at Object. (/opt/hubot/node_modules/hubot-skype/src/skype.coffee:9:28)
at Object. (/opt/hubot/node_modules/hubot-skype/src/skype.coffee:94:4)
at Module._compile (module.js:446:26)
at Object..coffee (/usr/lib/nodejs/coffee-script/lib/coffee-script/coffee-script.js:22:21)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Robot.loadAdapter (/opt/hubot/src/robot.coffee:215:31)
at new Robot (/opt/hubot/src/robot.coffee:47:14)
TypeError: Cannot call method 'on' of null
at Object. (/opt/hubot/bin/hubot:105:19)
at Object. (/opt/hubot/bin/hubot:109:4)
at Module._compile (module.js:446:26)
at Object.run (/usr/lib/nodejs/coffee-script/lib/coffee-script/coffee-script.js:79:25)
at /usr/lib/nodejs/coffee-script/lib/coffee-script/command.js:175:29
at /usr/lib/nodejs/coffee-script/lib/coffee-script/command.js:150:18
at [object Object]. (fs.js:123:5)
at [object Object].emit (events.js:64:17)
at Object.oncomplete (fs.js:1188:12)
And ideas?
Probably since d95bbfa, Hubot reacts to his own messages. This has the effect that a "hubot help" triggers some of its commands.
Is this intended or do we need to filter the incoming messages by author?
Hello,
bin/hubot -a skype
Getting ERROR Cannot load adapter skype - Error: Cannot find module 'hubot-skype' error.
package json file looks like below
{
"name": "hosted-hubot",
"version": "2.6.3",
"author": "GitHub Inc.",
"keywords": [
"github",
"hubot",
"campfire",
"bot"
],
"description": "A simple helpful robot for your Company",
"licenses": [{
"type": "MIT",
"url": "https://github.com/github/hubot/raw/master/LICENSE"
}],
"repository" : {
"type": "git",
"url": "https://github.com/github/hubot.git"
},
"dependencies": {
"hubot": ">= 2.6.0 < 3.0.0",
"hubot-skype": "https://github.com/datr/hubot-scripts/",
"coffee-script": "~> 1.4.0",
"optparse": "1.0.3",
"scoped-http-client": "0.9.7",
"log": "1.3.0"
},
"engines": {
"node": ">= 0.8.x",
"npm": ">= 1.1.x"
}
Could you please help me.
After simple installing hubot and manual installing hubot-skype. I can't run hubot by command:
./bin/hubot -a skype
After running I see next errors:
./bin/hubot -a skype
[Thu Aug 02 2012 00:45:01 GMT+0400 (MSK)] ERROR Cannot load adapter skype - Error: Cannot find module 'hubot'
Error: Cannot find module 'hubot'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object. (/opt/hubot/node_modules/hubot-skype/src/skype.coffee:9:11)
at Object. (/opt/hubot/node_modules/hubot-skype/src/skype.coffee:94:4)
at Module._compile (module.js:444:26)
at Object..coffee (/usr/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:22:21)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
TypeError: Cannot call method 'on' of null
at Object. (/opt/hubot/bin/hubot:105:19)
at Object. (/opt/hubot/bin/hubot:109:4)
at Module._compile (module.js:444:26)
at Object.run (/usr/lib/node_modules/coffee-script/lib/coffee-script/coffee-script.js:79:25)
at /usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:175:29
at /usr/lib/node_modules/coffee-script/lib/coffee-script/command.js:150:18
at [object Object]. (fs.js:115:5)
at [object Object].emit (events.js:64:17)
at afterRead (fs.js:1111:12)
at Object.wrapper as oncomplete
What I to do is not right?
The list of hubot adapters in the hubot documentation is being replaced with a link to a GitHub topic search. Add the hubot-adapter
topic to your repository on GitHub to include it in this list.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.