Ask coding questions

← Back to all posts
My bot connects to discord but wont respond to anything
spud69

so this bot will connect to discord but just wont respond to anything

Voters
Jick69
spud69
Comments
hotnewtop
AdCharity

Uh your file is not named correctly.


Also, it seems like you might already know, but I highly suggest the discord documentation, as there is quite a bit there.

spud69

@AdCharity does it look okay now?

AdCharity

@spud69 Well I can't test it 4 sure but it seems to work... (not throwing any errors). Btw ffmpeg is not enabled yet, so you shouldn't be able to use music :/ Ok I think ik why it isn't working. Why don't you have something like this ever in your code???

Are you sure you made this?

spud69

@AdCharity it works thank you and yes i made this

AdCharity

@spud69 also hide your keys with .env you put the token out there

spud69

@AdCharity oke thank you! Happy new year!!!

AdCharity

@spud69 you too and happy programming :)