Fix some formatting and linting issues
This commit is contained in:
parent
2a835132dc
commit
ceda1e2adc
2 changed files with 4 additions and 2 deletions
|
@ -115,7 +115,9 @@ async def pause(interaction: discord.Interaction, days: int | None = None):
|
||||||
interaction.user.id, interaction.channel.id, until)
|
interaction.user.id, interaction.channel.id, until)
|
||||||
state.save_to_file(State, STATE_FILE)
|
state.save_to_file(State, STATE_FILE)
|
||||||
await interaction.response.send_message(
|
await interaction.response.send_message(
|
||||||
f"Sure thing {interaction.user.mention}. Paused you until {util.format_day(until)}!", ephemeral=True, silent=True)
|
f"Sure thing {interaction.user.mention}!\n"
|
||||||
|
+ f"Paused you until {util.format_day(until)}!",
|
||||||
|
ephemeral=True, silent=True)
|
||||||
|
|
||||||
|
|
||||||
@bot.tree.command(description="List the matchees for this channel")
|
@bot.tree.command(description="List the matchees for this channel")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
"""Store bot state"""
|
"""Store bot state"""
|
||||||
import os
|
import os
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime
|
||||||
from schema import Schema, Use, Optional
|
from schema import Schema, Use, Optional
|
||||||
from collections.abc import Generator
|
from collections.abc import Generator
|
||||||
from typing import Protocol
|
from typing import Protocol
|
||||||
|
|
Loading…
Add table
Reference in a new issue