Can someone help me with this error?

Alright, I managed to fix the package.json but now this error after editing configs/app.json

throw err;

2:14 PM


2:14 PM

2:14 PM

SyntaxError: /app/configs/app.json: Unexpected token ; in JSON at position 229

2:14 PM

at JSON.parse (<anonymous>)

2:14 PM

at Object.Module._extensions…json (internal/modules/cjs/loader.js:708:27)

2:14 PM

at Module.load (internal/modules/cjs/loader.js:599:32)

2:14 PM

at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

2:14 PM

at Function.Module._load (internal/modules/cjs/loader.js:530:3)

2:14 PM

at Module.require (internal/modules/cjs/loader.js:637:17)

2:14 PM

at require (internal/modules/cjs/helpers.js:22:18)

2:14 PM

Jump to

at Object.<anonymous> (/app/index.js:3:16)

2:14 PM

at Module._compile (internal/modules/cjs/loader.js:689:30)

2:14 PM

at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)

Can you show the JSON file?

The app.json is hidden and I dont know how to make it appear again. For package.json here it is:

“name”: “discord-music-bot”,
“version”: “1.0.0”,
“description”: “simple discord music bot based on discord.js-commando”,
“main”: “index.js”,
“dependencies”: {
@mindaugaskasp/node-osu”: “github:mindaugaskasp/node-osu”,
@mindaugaskasp/node-riot”: “github:mindaugaskasp/node-riot”,
@mindaugaskasp/node-twitch”: “github:mindaugaskasp/node-twitch”,
@mindaugaskasp/node-youtube”: “github:mindaugaskasp/node-youtube”,
“axios”: “^0.15.3”,
“bufferutil”: “^4.0.1”,
“discord.js”: “^11.4.2”,
“discord.js-commando”: “^0.10.0”,
“erlpack”: “github:hammerandchisel/erlpack”,
“ffmpeg”: “^0.0.4”,
“fluent-ffmpeg”: “^2.1.2”,
“libsodium-wrappers”: “^0.7.4”,
“moment”: “^2.24.0”,
“node-opus”: “^0.3.1”,
“opusscript”: “0.0.6”,
“promised-io”: “^0.3.5”,
“sqlite”: “^3.0.1”,
“uws”: “^10.148.1”,
“validator”: “^9.4 .1”,
“ytdl-core”: “^0.29 .1”,
“discord-music-bot”: “^2.3.0”
“scripts”: {
“start”: “node index.js”,
“debug”: “node --inspect-brk= ./index.js”,
“test”: “echo “Error: no test specified” && exit 1”
“repository”: {
“type”: “git”,
“url”: “git+”
“keywords”: [
“author”: “Mindaugas Kasparavičius”,
“license”: “MIT”,
“bugs”: {
“url”: “
“homepage”: “

Ok, can I ask what device you use, because fancy quotes seems to be causing some of the problems you have.

Currently I am on my Android phone. About the quotes, I directly copied the lines from the GitHub source code

Ok, make sure to use the correct quotes (") because they seem to be the source to the first problem you had.
Can you try get me the app.json code, because that seems to be the file that is having the errors now!

The app.json code is now hidden when I entered the tokens. Now I have regenerated the tokens.

Ok, can you get it soon?

Here it is:
configs/ app.example.json


“bot”: {

“name”: “Xayah”,

“token”: “”,

“owners”: [



“delete_cmd_messages”: true,

“default_cmd_prefix”: “.”,

“activity_text”: “use .help command”


“youtube”: {

“token”: “”,

“base_url”: “



Can you give me your discord user id, and I will give you the correct needed app.json
And what is the desired prefix you want?

Discord ID: 329541844604157955
Prefix: ;

OK, and do you have your youtube api token?

I don’t know if I have to create a public API key or private API key

Can you take a look at this, and try get your youtube API key!

I have got your bot working and online, but music is not going to work until we get this api key1 :slight_smile:

Alright I’ll get the API key. Please check your DMs

Can you give me your bots token aswell please?

Yeah. I’m sending it in DM