How do I send HTTP requests from Roblox to my Discord Bot?

What would I do in order to send an HTTP request to my Discord bot but I have no idea how. I’ve searched around the DevForum, yet I got no luck so far. Anyone knows how?

1 Like

You need to have a webserver in the middle where roblox can do post and get requests to and then it gets send to a database that your bot checks our it directly fires a function on your bot.

2 Likes

Do you have any good databases in mind that doesn’t require me to pay?

Replit may be a good choice. It supports many languages too.

Edit:
Webhooks can also work, although it is different from bots. I don’t really know how to use webhooks as I’ve never used them, so I can’t really tell you about what they are like.

Since a bot requires a server to run the bot, you can set up HTTP request listening on the server and listen for requests from your game.

Edit 2:
Although Replit is decent, your server will shut down after 1 hour of inactivity. It will start up again after it receives another request, however it does take some time. One solution is using UptimeRobot to ping your server every 5 minutes so that your server doesn’t shut down. It also doubles as a status monitor.

Another downside of Replit is that it is sort of slow. This probably won’t be a problem if your game isn’t a front page game, however if you would like more advanced and reliable servers Heroku or AWS would be good choices.

Basically, you should use Replit and UptimeRobot if you are starting out and don’t have a very massive game.

From my knowledge, youcan only use webhooks for free.