Ruin9999 / minecraft-bot

A simple bot Minecraft automation bot made with prismarineJS
0 stars 0 forks source link

saying theres a syntax error when there is not #1

Closed nathan545x closed 3 years ago

nathan545x commented 3 years ago

SyntaxError: C:\Users\Pippa\Desktop\MCAI\minecraft-bot-main\config.json: Unexpected token : in JSON at position 13 at parse () at Object.Module._extensions..json (internal/modules/cjs/loader.js:1128:22) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module._load (internal/modules/cjs/loader.js:790:14) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:92:18) at Object. (C:\Users\Pippa\Desktop\MCAI\minecraft-bot-main\index.js:16:87) at Module._compile (internal/modules/cjs/loader.js:1085:14) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32)

Ruin9999 commented 3 years ago

Let me check this out. Both your email and password are in the SS though just fyi

nathan545x commented 3 years ago

It’s just one of my ALTS so it don’t matter too much but I’ll change the password thanks for telling me I didn’t even knowtes

Ruin9999 commented 3 years ago

Start the config file with "{" and end it with a "}".

In the end the file should look like this.

{
"botUsername" : "<username>",
"botPassword" : "<password>",
"server" : "<server>",
"serverPort" : "<port>",
"discordToken" : "<token>",
"discordPrefix" : "<prefix>"
}
Ruin9999 commented 3 years ago

This should fix it :)

nathan545x commented 3 years ago

Yep thank you, I’m a idiot I didn’t relise something that simple lol

Ruin9999 commented 3 years ago

Glad I could help :) Do feel free to hmu if you have any other issues/questions or feedback!