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

View File

@@ -311,7 +311,7 @@ schedulerMotd = False
# value can be min,hour,day,mon,tue,wed,thu,fri,sat,sun.
# value can also be 'joke' (min/interval), 'weather' (time/day), 'link' (hour/interval) for special auto messages
# or 'news' (hour/interval), 'readrss' (hour/interval), 'mwx' (time/day), 'sysinfo' (hour/interval),
# 'tide' (time/day), 'sun' (time/day) for automated information broadcasts
# 'tide' (time/day), 'solar' (time/day) for automated information broadcasts
# 'custom' for module/scheduler.py custom schedule examples
value =
# interval to use when time is not set (e.g. every 2 days)

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.

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