This is a custom Reminder Discord bot
-
Create a Bot account and invite the Bot to a Discord server
-
Add
main.pyandkeep_alive.pyto a new repository on Replit -
Replace
TOKENwith the Discord Bot token
Run the following in the bash shell:
pip install discord
pip install python-dateutil
pip install buttons
pip install aioschedule
pip install tzlocal
pip install pytz
- Then run
main.py, this should generate a URLhttps://reminderbot.winniiew.repl.co/that can then be used in UptimeRobot to host the Discord bot.
- Click
+ Add New Monitor - Select
HTTP(s)underMonitor Types - Paste the generated URL
- Change the monitoring interval to 5 minutes
Change the timezone by following the format below
tzinfos = {"<COUNTRY_CODE>": tz.gettz("<TZ_NAME>")}
dt = parser.parse(f"{dt} <COUNTRY_CODE>", tzinfos=tzinfos)<COUNTRY_CODE> with the desired country code
<TZ_NAME> with the timezone database name matching the country code
Example
tzinfos = {"US": tz.gettz("America/Los_Angeles")}
dt = parser.parse(f"{dt} US", tzinfos=tzinfos)/remindme 15m Laundry
/remindme 16:30:00 Feed the dog
s second seconds
m minute minutes
h hour hours
d day days
w week weeks
mo month months
y year years