How to turn on my bot


#1

Hello

I was coding my discord.js bot. But it isn’t online.

Here is the log line: parse error: Expected separator between values at line 8, column 11

My package.json:

{
  "name": "MiniGam1ng Network Bot",
  "version": "1.0.0",
  "description": "Bot oficial da MiniGam1ng Network",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Erro: sem texto especificado\" && exit 1"
    "start": "node index.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "discord.js": "^11.4.2"
  }
}

And other thing: Why in scripts it only accept one script?


MOD EDIT: formatting


#2

From the package.json content it looks like you’re missing a “,” between the two script definitions. Once you add that the package.json parsing error should go away at least.

I’m not sure what you mean by

You can add whatever scripts you like in there, although Glitch only processes prestart and start (in that order), but you can call other scripts as you normally would (with npm run test for example). Can you clarify what you mean?