My discord bot is not reply messages

15 Replies
d.js toolkit
d.js toolkit12mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
treble/luna
treble/luna12mo ago
messageCreate, not MessageCreate and its not once its on
Kirюша
Kirюша12mo ago
I'll try it now
Kirюша
Kirюша12mo ago
not work(
treble/luna
treble/luna12mo ago
because messageCreate is not an intent literally just do what i said
!"Unkown
!"Unkown12mo ago
chat gpt code ? replace the client.once("MessageCreate …. par client.on("messageCreate ….
treble/luna
treble/luna12mo ago
would suprise me since chatgpt doesnt know v14
!"Unkown
!"Unkown12mo ago
yeah and it doesnt make mistakes like this
Kirюша
Kirюша12mo ago
Sorry I'm so stupid, I did everything you said, but the bot doesn't respond(
treble/luna
treble/luna12mo ago
place a console log in your messageCreate to see if it fires
Kirюша
Kirюша12mo ago
I restarted visual Studio and ran the code again and the bot responded, thanks for the help. Can you tell me how to install the bot without restarting Visual Studio?
treble/luna
treble/luna12mo ago
save your files then run node again assuming you ctrl c'd the previous process
Kirюша
Kirюша12mo ago
Okay, thanks again. I just started learning JavaScript, decided to start by creating a discord bot, so sorry for my stupid questions)
treble/luna
treble/luna12mo ago
Might be worth checking out #resources as djs isnt quite beginner friendly
Kirюша
Kirюша12mo ago
Thanks for the information, I'm going to study. good luck!