dubtrackapi icon indicating copy to clipboard operation
dubtrackapi copied to clipboard

New to this

Open iCylow opened this issue 10 years ago • 5 comments

So I downloaded the dubtrackapi master file and then placed a file titled bot.js inside, pasted in the code provided and changed out the username/password and room location. Did the phantom install (npm install phantomjs) and now when I go to do 'node bot.js' I get the error that it "cannot find the module './dubtrackapi'". I'm kind of stuck here please help :/

iCylow avatar Oct 12 '15 16:10 iCylow

I realize I'm probably missing something quite simple but I'm a bit lost

iCylow avatar Oct 12 '15 16:10 iCylow

For me, I had to remove the "./" that's shown in the example.

var DubtrackAPI = require('dubtrackapi');

ImGrumpy avatar Oct 12 '15 16:10 ImGrumpy

well now it gives me the error that if cant find the dubtrackapi module

iCylow avatar Oct 12 '15 16:10 iCylow

Yeah I thought that might do it but I dont think so, still probably missing something simple

iCylow avatar Oct 12 '15 17:10 iCylow

You don't put your bot.js in the same directory as dubtrackapi - make a new folder, and put bot.js in it, and also put the dubtrackapi directory in there as well - so that both bot.js and dubtrackapi are in the same directory. You might then also cd into the dubtrackapi directory and run npm install to install all the dependencies.

atomjack avatar Oct 13 '15 00:10 atomjack