chore: auto-commit from dashboard
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user