TheRacingLion / Discord-SelfBot

A javascript discord selfbot that is setup and ready to go in less than 5 min.
MIT License
139 stars 107 forks source link

Error when running "sudo npm start". #79

Closed RikkaJavaBot closed 6 years ago

RikkaJavaBot commented 6 years ago

When I attempt to run "sudo npm start" (sudo for filing reasons) I get

`/home/eliza/Discord-SelfBot/node_modules/gumer-psn/psn.js:132 getAccessToken(codeResult[1]) ^

TypeError: Cannot read property '1' of null at Request._callback (/home/eliza/Discord-SelfBot/node_modules/gumer-psn/psn.js:132:30) at Request.self.callback (/home/eliza/Discord-SelfBot/node_modules/request/request.js:185:22) at Request.emit (events.js:182:13) at Request. (/home/eliza/Discord-SelfBot/node_modules/request/request.js:1157:10) at Request.emit (events.js:182:13) at IncomingMessage. (/home/eliza/Discord-SelfBot/node_modules/request/request.js:1079:12) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1081:12) at process._tickCallback (internal/process/next_tick.js:63:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! Discord_Selfbot@2.2.0 start: node self.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the Discord_Selfbot@2.2.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/eliza/.npm/_logs/2018-06-13T14_42_24_562Z-debug.log `

RikkaJavaBot commented 6 years ago

Fixed that issue, now I'm getting this error; `internal/modules/cjs/loader.js:724 throw err; ^

SyntaxError: /home/eliza/Discord-SelfBot/config/games.json: Unexpected token ] in JSON at position 35 at JSON.parse () at Object.Module._extensions..json (internal/modules/cjs/loader.js:721:27) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Module.require (internal/modules/cjs/loader.js:650:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (/home/eliza/Discord-SelfBot/self.js:16:15) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! Discord_Selfbot@2.2.0 start: node self.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the Discord_Selfbot@2.2.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/eliza/.npm/_logs/2018-06-13T15_02_32_154Z-debug.log `

TheRacingLion commented 6 years ago

Well, like it says in the error, there is a mistake in your games.json config file. Most likely a missing comma or a extra one in the last line.