chore: auto-commit from dashboard

This commit is contained in:
2026-04-02 19:43:01 +00:00
parent d9450ce70d
commit 5fafc29dc1
9 changed files with 383 additions and 20 deletions

View File

@@ -74,9 +74,11 @@ def main():
if channel is None:
logger.warning("Cron: channel %s not found in Discord cache", channel_id)
return
logger.info("Cron: sending %d chars to channel %s (%s)", len(text), channel_alias, channel_id)
chunks = split_message(text)
for chunk in chunks:
await channel.send(chunk)
logger.info("Cron: sent successfully to %s", channel_alias)
scheduler = Scheduler(send_callback=_send_to_channel, config=config)
client.scheduler = scheduler # type: ignore[attr-defined]