by Manthan Kumbhar | Budding Developer 🌱
Overview 🌐
Buidling a simple discord bot with javascript and node
Functional requirements🗒️
- Create a bot for Discord and make it live
- Add commands to the bot and make the bot respond to those commands
- Use uptimerobot to keep the repl process alive
Engineering Design 🎨
Hosting 📤
- REPL
- Repl is an online software to write and run a code
- Hosting on Repl so that new people new don't have to worry about github commits and repl is much easy to use and accessible
- Uptimerobot
- This a service which sends a HTTP request to your service every 5 mins and keeps it alive
- You just need to signup to their service and it's totally free of cost
Languages and framework ✍️
I'll be using javascript and bit of node for keeping the bot alive
Solution Outline 💪
- API - 1 will keep the bot alive
- It'll just display that the bot is running on the root page
- I'm adding this API because I'll be using Uptimerobot for keeping the bot alive and it requires a response 200
API's ⏩
GET /
- Purpose: To not let the server die and keep the repl running
- Response:
- Status | 200
- Input: < "visit the root route" >
- Output: < "bot is running" >