Problem with json


#1

Hi i have problem but i have this: /opt/watcher/app-types/node/start.sh: line 43: null: command not found

How to repair this i write “scripts”: {
“start”: “node bot.js”
},


#2

Any help with this problem


#3

Do you have a file called bot.js in project’s root directory? From the screenshot it looks like there’s a Bot.js file within the js directory. If that’s the file you intend to call, then you start command should be ‘node js/Bot.js’

And it should be scripts not script as you have in package.json in the screenshot.


#4

Yes i have bot.js and in deskop too


#5


#6

And did correcting script to scripts help?


#7

nope, same error, i created new project and add scripts, the same problem


#8

Ok, we’ll take a look - since your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.


#9

ok


#10

Thanks for providing that. I remixed the project and fixed script to scripts as suggested above, and this resolved the issue. Please change “script” to “scripts” on line 5 in your package.json file.


#11

Then i change to scripts and i have


#12

That’s an error from Discord - it looks like the credentials you’re providing are incorrect.


#13

it means ? Discord error files ?


#14

You should have a client.login() in your code that connects to Discord and that uses a token provided by Discord. That token either doesn’t exist, is incorrect or no longer valid.


#15

i can t find this login


#16

Where to find it is described in this tutorial: https://www.digitaltrends.com/gaming/how-to-make-a-discord-bot/


#17

i use discord bot maker


#18

You still have to register your bot and use a token though, right?


#19

yes, im register the bot and use an glitch token


#20

It’s not a Glitch token - the token you need comes from Discord. See the above linked tutorial for details of where it is.