Compare commits
1 commit
f64cfbf1c0
...
876d8fe20a
Author | SHA1 | Date | |
---|---|---|---|
876d8fe20a |
2 changed files with 2 additions and 53 deletions
|
@ -40,11 +40,8 @@ class FileCommand(InfoCommand):
|
|||
class ClubInfo(BaseModel):
|
||||
channels: list[int]
|
||||
|
||||
info: InfoCommand
|
||||
linktree: InfoCommand
|
||||
join: FileCommand
|
||||
fest: InfoCommand
|
||||
aktion: InfoCommand
|
||||
linktree: InfoCommand = InfoCommand()
|
||||
join: FileCommand = FileCommand(filename="Aufnahmeantrag.pdf")
|
||||
|
||||
|
||||
class Config(BaseModel):
|
||||
|
|
|
@ -13,21 +13,6 @@ def reply_private(interaction: discord.Interaction, name: str) -> bool:
|
|||
return interaction.channel_id not in CONFIG.ev_info.channels
|
||||
|
||||
|
||||
@ev_command(
|
||||
name="info",
|
||||
description=CONFIG.ev_info.info.description,
|
||||
)
|
||||
async def info(interaction: discord.Interaction) -> None:
|
||||
"""
|
||||
Allgemeine Infos zum Verein
|
||||
"""
|
||||
|
||||
await interaction.response.send_message(
|
||||
content=CONFIG.ev_info.info.content,
|
||||
ephemeral=reply_private(interaction, "info"),
|
||||
)
|
||||
|
||||
|
||||
@ev_command(
|
||||
name="linktree",
|
||||
description=CONFIG.ev_info.linktree.description,
|
||||
|
@ -60,40 +45,7 @@ async def join(interaction: discord.Interaction) -> None:
|
|||
)
|
||||
|
||||
|
||||
@ev_command(
|
||||
name="fest",
|
||||
description=CONFIG.ev_info.fest.description,
|
||||
)
|
||||
async def fest(interaction: discord.Interaction) -> None:
|
||||
"""
|
||||
Infos zum nächsten Vereinsfest
|
||||
"""
|
||||
|
||||
await interaction.response.send_message(
|
||||
content=CONFIG.ev_info.fest.content,
|
||||
ephemeral=reply_private(interaction, "fest"),
|
||||
)
|
||||
|
||||
|
||||
@ev_command(
|
||||
name="aktion",
|
||||
description=CONFIG.ev_info.aktion.description,
|
||||
)
|
||||
async def aktion(interaction: discord.Interaction) -> None:
|
||||
"""
|
||||
Infos zu aktuellen Aktionen
|
||||
"""
|
||||
|
||||
await interaction.response.send_message(
|
||||
content=CONFIG.ev_info.aktion.content,
|
||||
ephemeral=reply_private(interaction, "aktion"),
|
||||
)
|
||||
|
||||
|
||||
COMMANDS = [
|
||||
info,
|
||||
linktree,
|
||||
join,
|
||||
fest,
|
||||
aktion,
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue