'Unexpected string in JSON at position 41 [closed]
I'm a newbie to Javascript, I do not quite know what this error means:
SyntaxError: /home/runner/myrepl/config.json:
Unexpected string in JSON at position 41
My index.js looks fine at position 41 (I think).
Here is my config.json if that helps:
{
"DISCORD_ID": "mydiscordIDishere"
"CMDS": "mycommandschannelIDishere"
}
I have, discord.js, discord, npm and node.js installed. Please help I feel like I am really close to complete this project.
I am trying to make it work through discord by easy commands like p!pois uaid. Though I have spent quite a while trying to fix problems like these and I don't quite get how to solve it. I am running this on Replit.
Solution 1:[1]
Try to just add a comma on the 2nd line of config.json Actually:
{
"DISCORD_ID": "mydiscordIDishere"
"CMDS": "mycommandschannelIDishere"
}
After:
{
"DISCORD_ID": "mydiscordIDishere",
"CMDS": "mycommandschannelIDishere"
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Juninho |
