Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alaninnovates/dpp-on-repl
Run D++ Discord bots on Replit!
https://github.com/alaninnovates/dpp-on-repl
Last synced: about 1 month ago
JSON representation
Run D++ Discord bots on Replit!
- Host: GitHub
- URL: https://github.com/alaninnovates/dpp-on-repl
- Owner: alaninnovates
- Created: 2021-12-30T03:27:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-30T03:32:53.000Z (about 3 years ago)
- Last Synced: 2024-10-15T21:31:56.605Z (3 months ago)
- Language: C++
- Size: 1.71 MB
- Stars: 1
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# D++ bots on Replit [![Run on Replit](https://replit.com/badge/github/alanlichen/dpp-on-repl)](https://replit.com/github/alanlichen/dpp-on-repl)
## How to run your bot
1. Set the `DISCORD_TOKEN` environment variable to your bot's token
2. Put your code in src/main.cpp
3. Click run!## How to keep your bot online
To keep your bot online, you need to have a webserver and ping it. Every 5 minutes is a good default. If you do not do this, your bot will fall asleep and go offlne.
### Registering an account on UPTIMEROBOT
This part is pretty simple.
Go to [uptimerobot.com](https://uptimerobot.com/) and create an accout if you dont have one.### Making a moniter
After verifying your account, click "Add New Monitor".
+ For Monitor Type select "HTTP(s)"
+ In Friendly Name put the name of your bot
+ For your url, put the url of the website made for your repl.
+ Select any alert contacts you want, then click "Create Monitor"
![Uptime robot example](https://i.imgur.com/Qd9LXEy.png)### And you are good to go!
Your bot should now be good to go, with near 100% uptime.