peterhanania / Pogy

A fully customizable discord bot made with discord.js with over 183 commands, 12 categories, and a fully customizable dashboard. Watching over 350,000 users and 1k guilds. [deprecated]
https://pogy.xyz
Apache License 2.0
255 stars 215 forks source link

I been looking for over an hour for a fix but can't find it, when I try running it with index or shard it gives me this #48

Open BotSolver opened 2 years ago

BotSolver commented 2 years ago

SyntaxError: C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\config.json: Unexpected token / in JSON at position 169 at parse (<anonymous>) at Object.Module._extensions..json (node:internal/modules/cjs/loader:1169:22) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\shard.js:1:16) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32)

Savageiscool commented 2 years ago

SyntaxError: C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\config.json: Unexpected token / in JSON at position 169 at parse (<anonymous>) at Object.Module._extensions..json (node:internal/modules/cjs/loader:1169:22) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\shard.js:1:16) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32)

I also have been facing this issue

hellsuck commented 2 years ago

SyntaxError: C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\config.json: Unexpected token / in JSON at position 169 at parse (<anonymous>) at Object.Module._extensions..json (node:internal/modules/cjs/loader:1169:22) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (C:\Users\ladyg\Videos\My Discord Bots\Pogy-main\shard.js:1:16) at Module._compile (node:internal/modules/cjs/loader:1103:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) at Module.load (node:internal/modules/cjs/loader:981:32)

Please Attach Your Config.json, Just Make Sure to delete the token b4 sending it here.

KuroiJigoku commented 2 years ago

Just replace the config.json with this:

config.txt

eYuM-coder commented 2 years ago

For those that don't know, .json files DO NOT support comments, this is why you are getting this error, make sure to delete the comments before running the bot, any further issues will be investigated.