From f05eae65b020c52e40e1d62973cd1351eee08800 Mon Sep 17 00:00:00 2001 From: dnns01 <git@dnns01.de> Date: Sat, 12 Oct 2024 01:11:16 +0200 Subject: [PATCH] Make title the first parameter for adding appointments --- extensions/appointments.py | 2 +- fernuni_bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/appointments.py b/extensions/appointments.py index 4eee611..ef9e69a 100644 --- a/extensions/appointments.py +++ b/extensions/appointments.py @@ -67,7 +67,7 @@ class Appointments(commands.GroupCog, name="appointments", description="Handle A title="Titel des Termins (so wie er dann evtl. auch im Kalender steht).", description="Detailliertere Beschreibung, was gemacht werden soll.", recurring="In welchem Intervall (in Tagen) soll der Termin wiederholt werden?") - async def cmd_add_appointment(self, interaction: Interaction, date: str, time: str, reminder: int, title: str, + async def cmd_add_appointment(self, interaction: Interaction, title: str, date: str, time: str, reminder: int, description: str = "", recurring: int = 0) -> None: """ Add an appointment to a channel """ channel = interaction.channel diff --git a/fernuni_bot.py b/fernuni_bot.py index ae07ad2..e989e2b 100644 --- a/fernuni_bot.py +++ b/fernuni_bot.py @@ -62,7 +62,7 @@ class Boty(commands.Bot): return "%d.%m.%Y %H:%M" -bot = Boty(command_prefix='!', help_command=None, activity=Game(ACTIVITY), owner_id=OWNER, intents=intents, +bot = Boty(command_prefix=')', help_command=None, activity=Game(ACTIVITY), owner_id=OWNER, intents=intents, initial_extensions=extensions) -- GitLab