yssk22 / node-twbot Goto Github PK
View Code? Open in Web Editor NEWtwitter bot microframework on top of node.js
twitter bot microframework on top of node.js
yssk22様
表題のハンズオン資料を参考にさせていただいております。
ステップ2: ストリームの動作確認においてエラーが表示されてしまい先に進めないでいますw
色々試したのですが、中々解決せずよろしければご回答いただけますと幸いでございます。
■環境
OS ubuntu 10.04
node.js v0.4.2
npm 1.0.94
■現象
下記bot.loadPluginにてエラー
bot.loadPlugin('twbot/lib/plugins/debug');
var TwBot = require("twbot").TwBot
{ TwBot: { [Function: TwBot] super_: [Function: EventEmitter] } } //TwBotオブジェクト
var bot = new TwBot({"consumerKey":"XXX","consumerSecret":"XXX","accessKey":"CCC","accessSecret":"CCC"})
bot.loadPlugin('twbot/lib/plugins/debug');
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Object twbot has no method 'info'
at /usr/local/lib/node_modules/twbot/lib/twbot.js:168:21
at Array.forEach (native)
at TwBot.loadPlugin (/usr/local/lib/node_modules/twbot/lib/twbot.js:167:18)
at Object. (/var/www/nginx-default/broad.js:6:5)
at Module._compile (module.js:411:26)
at Object..js (module.js:417:10)
at Module.load (module.js:343:31)
at Function._load (module.js:302:12)
at Array. (module.js:430:10)
補足
ライブラリは/usr/local/lib/node_modulesを読んでいますが、Oauth認証のモジュールが作られなかった為。
nodejs本体node_modules以下にもnpmコマンドでインストールしたところ、config.jsなどのファイルが作られました。
大変恐縮ですがご教示いただますと幸いでございます。
よろしくお願いいたします。
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.