From 1315cb294f63fa8e72850e88123b9bd45e4da6e5 Mon Sep 17 00:00:00 2001 From: Gabriella Date: Fri, 17 Oct 2025 11:09:58 -0600 Subject: [PATCH] Add 'breaks' command to bot_core --- src/py/bot_core.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/py/bot_core.py b/src/py/bot_core.py index 6071ca7..8be6d1c 100644 --- a/src/py/bot_core.py +++ b/src/py/bot_core.py @@ -315,6 +315,15 @@ async def schedule(interaction: discord.Interaction, days: int = DAYS_FOR_CALLOU await interaction.followup.send(f'Callouts for the next {days} days:\n{callouts}') return + +@client.tree.command() +async def breaks(interaction: discord.Interaction, days: int = 365) -> None: + delete_invalidate() + cleanup_invalidate() + await interaction.response.defer(thinking=True) + await interaction.response.send_message(str(DATABASE_CONN.query_breaks())) + + @client.tree.command() async def self_callouts(interaction: discord.Interaction, days: int = 365) -> None: delete_invalidate()