Add 'breaks' command to bot_core
All checks were successful
Test Helper Module / test (3.11.5) (push) Successful in 1m31s
All checks were successful
Test Helper Module / test (3.11.5) (push) Successful in 1m31s
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user