Add "breaks" functionality to bot. #1

Merged
contrastellar merged 23 commits from gabby-dev into main 2025-10-17 17:53:55 +00:00
Showing only changes of commit 1315cb294f - Show all commits

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