Discord bot error

Hi i made a bot and now when i trying to make him online i get this error im new in discord.js so sory if its something easy to fix.

internal/modules/cjs/loader.js:800

throw err;
^

SyntaxError: C:\Users\User\Desktop\discordbot\botconfig.json: Unexpected token / in JSON at position 5
at JSON.parse (<anonymous>)
at Object.Module._extensions…json (internal/modules/cjs/loader.js:797:27)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (C:\Users\User\Desktop\discordbot\index.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:789:10)

SyntaxError: C:\Users\User\Desktop\discordbot\botconfig.json: Unexpected token / in JSON at position 5

You’ve done something wrong in botconfig.json, involving a “/”. We can’t do much more to assist you unless you show us some more of your code.

Thank you i found the wrong thing 

I have the same error, but

@oknowidow wrote:

Thank you i found the wrong thing 

I can’t fix it. Can you show me your way?

1 Like