mirror of
https://code.lenaisten.de/Lenaisten/lenaverse-bot.git
synced 2024-11-22 15:03:01 +00:00
/vorstand command
This commit is contained in:
parent
8c73e401ed
commit
4a7851c50d
2 changed files with 19 additions and 0 deletions
|
@ -62,6 +62,7 @@ class ClubInfo(BaseModel):
|
||||||
channels: list[int]
|
channels: list[int]
|
||||||
|
|
||||||
info: InfoCommand
|
info: InfoCommand
|
||||||
|
vorstand: InfoCommand
|
||||||
linktree: InfoCommand
|
linktree: InfoCommand
|
||||||
join: FileCommand
|
join: FileCommand
|
||||||
fest: InfoCommand
|
fest: InfoCommand
|
||||||
|
|
|
@ -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(
|
@ev_command(
|
||||||
name=CONFIG.ev_info.linktree.name,
|
name=CONFIG.ev_info.linktree.name,
|
||||||
description=CONFIG.ev_info.linktree.description,
|
description=CONFIG.ev_info.linktree.description,
|
||||||
|
@ -103,6 +120,7 @@ async def aktion(interaction: discord.Interaction) -> None:
|
||||||
|
|
||||||
COMMANDS = [
|
COMMANDS = [
|
||||||
info,
|
info,
|
||||||
|
vorstand,
|
||||||
linktree,
|
linktree,
|
||||||
join,
|
join,
|
||||||
fest,
|
fest,
|
||||||
|
|
Loading…
Reference in a new issue