discord-greeter-bot icon indicating copy to clipboard operation
discord-greeter-bot copied to clipboard

Line 1 error expected object

Open capjay45 opened this issue 4 years ago • 2 comments

Hi, I know pretty much nothing about js but I keep getting this issue and I dont know how to solve it Script: C:/Users/myname/Desktopdiscordbot/bot.js Line: 1 Char: 1 Error: Object expected Code: numbers Source: Microsoft JScript runtime error

capjay45 avatar Oct 16 '20 23:10 capjay45

Looks like you're running this by clicking on it. Try running it by opening cmd.exe and typing cd Desktopdiscordbot && node bot.js.

sarthaktexas avatar Oct 17 '20 06:10 sarthaktexas

I had the same issue, and when I loaded by the cmd, it says me that:

SyntaxError: C:\Users\Usuario\Desktop\jesus-bot\auth.json: Unexpected token D in JSON at position 0 at parse () at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22) at Module.load (internal/modules/cjs/loader.js:928:32) at Function.Module._load (internal/modules/cjs/loader.js:769:14) at Module.require (internal/modules/cjs/loader.js:952:19) at require (internal/modules/cjs/helpers.js:88:18) at Object. (C:\Users\Usuario\Desktop\jesus-bot\bot.js:3:12) at Module._compile (internal/modules/cjs/loader.js:1063:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10) at Module.load (internal/modules/cjs/loader.js:928:32)

xBlanco avatar Oct 29 '20 13:10 xBlanco