From 29af971c395e3966596698b7770581dccc95153b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Wed, 22 Nov 2023 22:37:30 +0100 Subject: [PATCH] /beitreten command update --- lenaverse_bot/core/config.py | 2 +- lenaverse_bot/core/verein.py | 30 ++++++++++++++++++------------ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/lenaverse_bot/core/config.py b/lenaverse_bot/core/config.py index f4a7d24..4f27992 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 - beitreten: FileCommand + beitreten: InfoCommand fest: InfoCommand aktion: InfoCommand diff --git a/lenaverse_bot/core/verein.py b/lenaverse_bot/core/verein.py index eabc732..0969577 100644 --- a/lenaverse_bot/core/verein.py +++ b/lenaverse_bot/core/verein.py @@ -71,19 +71,25 @@ async def beitreten(interaction: discord.Interaction) -> None: Wie und warum dem Verein beitreten """ - if (file := await CONFIG.ev_info.beitreten.as_discord_file) is not None: - await interaction.response.send_message( - content=CONFIG.ev_info.beitreten.content, - file=file, - suppress_embeds=True, - ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name), - ) + await interaction.response.send_message( + content=CONFIG.ev_info.beitreten.content, + suppress_embeds=True, + ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name), + ) - else: - await interaction.response.send_message( - content=CONFIG.command_failed, - ephemeral=True, - ) + # if (file := await CONFIG.ev_info.beitreten.as_discord_file) is not None: + # await interaction.response.send_message( + # content=CONFIG.ev_info.beitreten.content, + # file=file, + # suppress_embeds=True, + # ephemeral=reply_private(interaction, CONFIG.ev_info.beitreten.name), + # ) + + # else: + # await interaction.response.send_message( + # content=CONFIG.command_failed, + # ephemeral=True, + # ) @ev_command(