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
d.js toolkit
d.js toolkit5mo ago
- 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 OP
Degenerate
DegenerateOP5mo ago
theres no output coming so i cant see an error
treble/luna
treble/luna5mo ago
how are you running the file
Degenerate
DegenerateOP5mo ago
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
treble/luna
treble/luna5mo ago
you run it using node <filename> and make sure your code is saved
Degenerate
DegenerateOP5mo ago
its saved but theres no output other than my bot connected and its still not doing anything what now
treble/luna
treble/luna5mo ago
and where/how are you registering your commands
Degenerate
DegenerateOP5mo ago
in dms of the bot the script makes the bot do it in dms
treble/luna
treble/luna5mo ago
do your commands show up when you type /
Degenerate
DegenerateOP5mo ago
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
treble/luna
treble/luna5mo ago
because this is for slash commands where did you find that code
Degenerate
DegenerateOP5mo ago
...
Want results from more Discord servers?
Add your server