#discord bot template

16 messages · Page 1 of 1 (latest)

vast lion
#

hi is there any chance anyone can give me a template for a slash command bot please because all the ones that i have tried dont seem to work

vivid valleyBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by staff
vast lion
#

i used that one it starts the bot but the commands dont work

#

but i get no errors

open junco
vast lion
#

no

#

they do not show on discord

open junco
#

Did you run the deploy script?

vast lion
#

yes

open junco
#

And then what happens?

vast lion
#

said succesfully registired but then still didnt show up

open junco
#

What exactly does it log, and which template are you using?

vast lion
#

i am using the js template and when i run the deploy command it says "

[email protected] deploy
node --require dotenv/config src/util/deploy.js

Successfully registered 1 commands."

and the start command gives"

[email protected] start
node --require dotenv/config src/index.js

Ready! Logged in as AxeBot#6472

open junco
#

Have you tried reloading your Discord

vast lion
#

just tried it and that work thx