Discord bot code refuses to function. Returns 'The application did not respond'.
I'm trying to make a discord bot with Cloudflare Workers, but it is refusing to function. I am not using wrangler as that is beyond my understanding. I will send my code in the next message.
10 Replies
security alert... you posted code with your secrets in them... time to cycle your bot token...
have you tried taking a look at discord's cloudflare sample app and using it as a basis? https://github.com/discord/cloudflare-sample-app
GitHub
GitHub - discord/cloudflare-sample-app: Example discord bot using C...
Example discord bot using Cloudflare Workers. Contribute to discord/cloudflare-sample-app development by creating an account on GitHub.
just did, some delightful human being just leaked it lol. thanks, ill be more careful next time. cycled.
didnt know it existed, thanks
ah so it was you lol. i mean someone put it on github lol
no idea what that means but ok
ah i see, thanks
im such an idiot lol
how do i do it without wrangler etc
i have windows so i cant even get it
(from what i can see)
Why not use wrangler? I'm on Windows as well and I can develop my bot locally.
but i cant host it locally
i know 0 about this incase you didnt notice
For testing purposes whilst you build your bot its fine. Just follow the readme at the linked demo app.
@soundmanD help, trying to install npm and im using volta, it just says volta : The term 'volta' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
fixed
uh oh @soundmanD trying to do the thing on the tutorial, its so confusing and its not working
hey @soundmanD i need some help, i cant open the stuff in vs code, i created the bot, logged in, etc in cmd and i dont know what to next because all the tutorials i can find are completely different looking
im really struggling
unfortunately all i can say is that the readme for the repo is what needs to be followed.
am i meant to run it in cmd or what im so confused
its refusing to work in cmd