This commit is contained in:
SpudGunMan
2025-10-28 18:42:29 -07:00
parent 41e7c1207a
commit 666ae24d2c
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -659,10 +659,10 @@ You can schedule messages or actions using the following options in your configu
- Time: `05:00`
- → Sends tide information daily at 5:00a.
#### **sun**
#### **solar**
- Schedules the bot to send sun information (sunrise/sunset) at the specified time of day, daily.
- **Example:**
- Option: `sun`
- Option: `solar`
- Time: `06:00`
- → Sends sun information daily at 6:00a.
+2 -2
View File
@@ -171,11 +171,11 @@ def setup_scheduler(
lambda: send_message(handle_tide(0, schedulerInterface, schedulerChannel), schedulerChannel, 0, schedulerInterface)
)
logger.debug(f"System: Starting the tide scheduler to send tide information at {schedulerTime} on Device:{schedulerInterface} Channel:{schedulerChannel}")
elif 'sun' in schedulerValue:
elif 'solar' in schedulerValue:
schedule.every().day.at(schedulerTime).do(
lambda: send_message(handle_sun(0, schedulerInterface, schedulerChannel), schedulerChannel, 0, schedulerInterface)
)
logger.debug(f"System: Starting the sun scheduler to send sun information at {schedulerTime} on Device:{schedulerInterface} Channel:{schedulerChannel}")
logger.debug(f"System: Starting the scheduler to send solar information at {schedulerTime} on Device:{schedulerInterface} Channel:{schedulerChannel}")
elif 'custom' in schedulerValue:
try:
from modules.custom_scheduler import setup_custom_schedules # type: ignore