Can someone figure out what is wrong with this script?
Text file with script below, i cant figure out what is wrong with my script because in the terminal (im using vscode with a javascript debugger) its not printing out anything, even with print statments.
usually when i was originally using python before switching to java there was a run button, just press and its running, its not the same for java, can someone tell me why theres no run button and that i have to do it in the terminal?
13 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- 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 OPtheres no output coming so i cant see an error
how are you running the file
saying npm start in terminal of vscode
and then crazy stuff happens
then
my discord bot connects
hes online
he wont do anything else tho
you run it using node <filename>
and make sure your code is saved
its saved
but
theres no output other than my bot connected
and its still not doing anything
what now
and where/how are you registering your commands
in dms
of the bot
the script makes the bot do it in dms
do your commands show up when you type /
well
i dont use commands
i just have to type anything to the bot
and it usually responds and works
once i transitioned to javascript the script flopped
because this is for slash commands
where did you find that code
...