mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-05-05 21:12:16 +02:00
sunday
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user