Open phrozen755 opened 8 years ago
It seems to be failing around the createPage around line 259
try {
phantom.create(function(error,ph) {
ph.get('version', function(result) {
if(result.major < 2) {
var version = result.major + "." + result.minor + "." + result.patch;
console.log("Sorry, but PlugBotAPI requires phantomjs version >= 2.0.0. You are running version " + version + ".");
ph.exit();
process.exit(1);
}
});
if(typeof callback == 'function') callback(ph);
});
} catch (err){ console.log('DubtrackAPI.createPage error: '+err) }
After wrapping it in a catch, I get this error : TypeError: args.concat is not a function
http://i.imgur.com/SjfPGCX.png
my bot.js file:
In the same directory I have the dubtrackapi.js file.
after running node bot.js, it runs, echo's my "init" I have, and kicks me out to my prompt without any errors. Any idea what's going on?
Any help would be appreciated. Thanks!