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()