ok the bot is running on the oracle server from just running the bot.py script 24/7 but we have some issues to fix
1.

the bot sends a message every minute
fix!
first, a start and end message:
# Message templates
MESSAGE_TEMPLATE_START = "{name} has class starting in 10 minutes at {location}! If you're nearby, go say hi and snipe them!"
MESSAGE_TEMPLATE_END = "{name}'s class ends in 10 minutes at {location}! If you're nearby, go say hi and snipe them!"
rewrite logic to check if current time == 10 mins before start or end
now git pull in the oracle server
back up and running…
hope that helps
2.

sent out at 2:30 am???
double checked the class schedule data:
"Group 4": {
"Parin": [
("Mon", "07:30", "08:20", {"location": "BHEE 224"}),
("Wed", "07:30", "08:20", {"location": "BHEE 224"}),
("Fri", "07:30", "08:20", {"location": "BHEE 224"}),
.
.
.
so it’s properly entered i didnt make a mistake
potential issue: the code is based on the local computer’s time and timezone right now
! vthe oracle cloud server oc03 is based in korea right now
let’s try fixing that…
from zoneinfo import ZoneInfo
# Use Eastern Time
eastern = ZoneInfo("America/New_York")
now = datetime.datetime.now(eastern)
it’s working like this so far 😋
