From 4a7851c50df52cde078217c0ef074e3741a7f163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 21 Nov 2023 16:02:43 +0100 Subject: [PATCH] /vorstand command --- lenaverse_bot/core/config.py | 1 + lenaverse_bot/core/verein.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/lenaverse_bot/core/config.py b/lenaverse_bot/core/config.py index 2cff0a0..9a17fd5 100644 --- a/lenaverse_bot/core/config.py +++ b/lenaverse_bot/core/config.py @@ -62,6 +62,7 @@ class ClubInfo(BaseModel): channels: list[int] info: InfoCommand + vorstand: InfoCommand linktree: InfoCommand join: FileCommand fest: InfoCommand diff --git a/lenaverse_bot/core/verein.py b/lenaverse_bot/core/verein.py index 0507161..3d948d8 100644 --- a/lenaverse_bot/core/verein.py +++ b/lenaverse_bot/core/verein.py @@ -29,6 +29,23 @@ async def info(interaction: discord.Interaction) -> None: ) +@ev_command( + name=CONFIG.ev_info.vorstand.name, + description=CONFIG.ev_info.vorstand.description, +) +async def vorstand(interaction: discord.Interaction) -> None: + """ + Wer ist im Vereinsvorstand? + """ + + await interaction.response.send_message( + content=CONFIG.ev_info.vorstand.content, + silent=True, + suppress_embeds=True, + ephemeral=reply_private(interaction, CONFIG.ev_info.vorstand.name), + ) + + @ev_command( name=CONFIG.ev_info.linktree.name, description=CONFIG.ev_info.linktree.description, @@ -103,6 +120,7 @@ async def aktion(interaction: discord.Interaction) -> None: COMMANDS = [ info, + vorstand, linktree, join, fest,