Format code

This commit is contained in:
2022-10-29 15:54:27 +02:00
parent 84b6acbea9
commit 7d9b8e25d4
2 changed files with 531 additions and 531 deletions

View File

@ -149,7 +149,7 @@ async def list_command(ctx: interactions.CommandContext):
for page in pages: for page in pages:
return await ctx.send( return await ctx.send(
content="I haven't added support for buttons if there is only one reminder, " content="I haven't added support for buttons if there is only one reminder, "
"so you need to add another one to edit/delete this one 🙃", "so you need to add another one to edit/delete this one 🙃",
embeds=page.embeds, embeds=page.embeds,
) )
@ -192,10 +192,10 @@ async def list_command(ctx: interactions.CommandContext):
) )
@autodefer() @autodefer()
async def command_add( async def command_add(
ctx: interactions.CommandContext, ctx: interactions.CommandContext,
message_reason: str, message_reason: str,
message_date: str, message_date: str,
different_channel: interactions.Channel | None = None, different_channel: interactions.Channel | None = None,
): ):
"""Add a new reminder. You can add a date and message. """Add a new reminder. You can add a date and message.
@ -346,21 +346,21 @@ async def command_add(
) )
@autodefer() @autodefer()
async def remind_cron( async def remind_cron(
ctx: interactions.CommandContext, ctx: interactions.CommandContext,
message_reason: str, message_reason: str,
year: int | None = None, year: int | None = None,
month: int | None = None, month: int | None = None,
day: int | None = None, day: int | None = None,
week: int | None = None, week: int | None = None,
day_of_week: str | None = None, day_of_week: str | None = None,
hour: int | None = None, hour: int | None = None,
minute: int | None = None, minute: int | None = None,
second: int | None = None, second: int | None = None,
start_date: str | None = None, start_date: str | None = None,
end_date: str | None = None, end_date: str | None = None,
timezone: str | None = None, timezone: str | None = None,
jitter: int | None = None, jitter: int | None = None,
different_channel: interactions.Channel | None = None, different_channel: interactions.Channel | None = None,
): ):
"""Create new cron job. Works like UNIX cron. """Create new cron job. Works like UNIX cron.
@ -499,18 +499,18 @@ async def remind_cron(
) )
@autodefer() @autodefer()
async def remind_interval( async def remind_interval(
ctx: interactions.CommandContext, ctx: interactions.CommandContext,
message_reason: str, message_reason: str,
weeks: int = 0, weeks: int = 0,
days: int = 0, days: int = 0,
hours: int = 0, hours: int = 0,
minutes: int = 0, minutes: int = 0,
seconds: int = 0, seconds: int = 0,
start_date: str | None = None, start_date: str | None = None,
end_date: str | None = None, end_date: str | None = None,
timezone: str | None = None, timezone: str | None = None,
jitter: int | None = None, jitter: int | None = None,
different_channel: interactions.Channel | None = None, different_channel: interactions.Channel | None = None,
): ):
"""Create a new reminder that triggers based on an interval. """Create a new reminder that triggers based on an interval.

998
poetry.lock generated

File diff suppressed because it is too large Load Diff