Add 'breaks' command to bot_core
All checks were successful
Test Helper Module / test (3.11.5) (push) Successful in 1m31s

This commit is contained in:
2025-10-17 11:09:58 -06:00
parent 090d370ce1
commit 1315cb294f

View File

@@ -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}') await interaction.followup.send(f'Callouts for the next {days} days:\n{callouts}')
return 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() @client.tree.command()
async def self_callouts(interaction: discord.Interaction, days: int = 365) -> None: async def self_callouts(interaction: discord.Interaction, days: int = 365) -> None:
delete_invalidate() delete_invalidate()