#Bot Hosting for Gateway web socket connection

13 messages · Page 1 of 1 (latest)

proven pumice
#

Hi all, I have a very simple bot that listens to messages in a channel and creates a poll whenever a message is sent. 2 things really.

  1. Where is a good place to host thing that does NOT use interactions (i.e. apparently doing gateway things with CloudFlare workers is not possible). Like is hosting this bot in Lambda a possibility?
  2. Are there any examples someone could send me about getting that set up. I have pretty decent devops experience but have not worked with web sockets before
frigid pikeBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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!
grim lake
#
  1. you’d need an actual host, not serverless
  2. the official guide is a big example (can skip all parts about interactions and commands)
proven pumice
#

@grim lake what is the official guide?

idle voidBOT
proven pumice
#

thank you!

#

am I missing something? I don't see anything about hosting on that guide

grim lake
#

I replied to your two questions with two separate answers

proven pumice
#

Oh sorry, I can see how that's confusing. I meant getting a hosted server set up

#

I have the code working locally already

grim lake
#

A server is just a computer running somewhere else. So you set it up the same way you do locally

#

Make sure node is installed, upload your project and run it

#

There’s nothing special about the websocket here, that’s all handled by node internals and packages.