#Help my bot doesn’t work

1 messages · Page 1 of 1 (latest)

azure abyss
#

Ok so I can’t send pics

#

Nevermind

#

index.js and bot.js

#

Something like this is supposed to show up

upbeat dawn
#

yeah?

azure abyss
#

Mhm

upbeat dawn
#

open the console and see

azure abyss
#

Is it supposed to work

#

Like is there anything wrong with my code

glad dragon
#

just wondering, did you run the code?

azure abyss
#

Yes

upbeat dawn
azure abyss
#

My bot goes online but then no commands

glad dragon
#

but did you execute your index.js file?

azure abyss
#

Yes…? I think so

glad dragon
#

no you didnt

azure abyss
#

Is this correct? (package.json)

main: “bot.js”

glad dragon
#

and what about your index.js

#

it wont execute by its own

azure abyss
#

Idk how do I fix it

#

I feel like if I put index.js then bot.js wont work

#

Should I still try

#

Anyone here?

#

@glad dragon

#

@upbeat dawn

glad dragon
#

you should only run that file once

#

not every time you turn in your bot

#

only when you make changes to your slashcommands

azure abyss
#

Ok but what do I do to package.json to make sure my index also executes

glad dragon
#

did you read what I said

#

You dont need to run that file every time

azure abyss
#

But when I do then what

#

Will it work only when I make changes then run?

#

@glad dragon

glad dragon
#

You just run it once and forget about it

azure abyss
#

Ok

#

@glad dragon new problem

#

What does this mean

upbeat dawn
#

missing access

latent surge
# azure abyss

is the bot in the guild you're trying to deploy the commands in?

#

but which file were you trying to execute?