From 7c4dc07273b7c2473da8975faf2046296e47d96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 21 Nov 2023 17:37:48 +0100 Subject: [PATCH] "join" -> "beitreten" --- lenaverse_bot/core/config.py | 2 +- lenaverse_bot/core/verein.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lenaverse_bot/core/config.py b/lenaverse_bot/core/config.py index 9a17fd5..f4a7d24 100644 --- a/lenaverse_bot/core/config.py +++ b/lenaverse_bot/core/config.py @@ -64,7 +64,7 @@ class ClubInfo(BaseModel): info: InfoCommand vorstand: InfoCommand linktree: InfoCommand - join: FileCommand + beitreten: FileCommand fest: InfoCommand aktion: InfoCommand diff --git a/lenaverse_bot/core/verein.py b/lenaverse_bot/core/verein.py index 3d948d8..eabc732 100644 --- a/lenaverse_bot/core/verein.py +++ b/lenaverse_bot/core/verein.py @@ -63,20 +63,20 @@ async def linktree(interaction: discord.Interaction) -> None: @ev_command( - name=CONFIG.ev_info.join.name, - description=CONFIG.ev_info.join.description, + name=CONFIG.ev_info.beitreten.name, + description=CONFIG.ev_info.beitreten.description, ) -async def join(interaction: discord.Interaction) -> None: +async def beitreten(interaction: discord.Interaction) -> None: """ Wie und warum dem Verein beitreten """ - if (file := await CONFIG.ev_info.join.as_discord_file) is not None: + if (file := await CONFIG.ev_info.beitreten.as_discord_file) is not None: await interaction.response.send_message( - content=CONFIG.ev_info.join.content, + content=CONFIG.ev_info.beitreten.content, file=file, suppress_embeds=True, - ephemeral=reply_private(interaction, CONFIG.ev_info.join.name), + ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name), ) else: @@ -122,7 +122,7 @@ COMMANDS = [ info, vorstand, linktree, - join, + beitreten, fest, aktion, ]