diff --git a/config.template b/config.template index 8759656..55bdd8e 100644 --- a/config.template +++ b/config.template @@ -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) diff --git a/modules/README.md b/modules/README.md index fe6c2d5..1b1ae22 100644 --- a/modules/README.md +++ b/modules/README.md @@ -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. diff --git a/modules/scheduler.py b/modules/scheduler.py index 01d2a98..ff09468 100644 --- a/modules/scheduler.py +++ b/modules/scheduler.py @@ -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