mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
Fix food api url, remove resto option
This commit is contained in:
parent
3c52d681b3
commit
f052885ae0
3 changed files with 8 additions and 16 deletions
|
|
@ -1,7 +1,7 @@
|
|||
from discord.ext import commands
|
||||
from dislash import SlashInteraction, slash_command, Option, OptionType, OptionChoice
|
||||
from dislash import SlashInteraction, slash_command, Option, OptionType
|
||||
|
||||
from data.embeds.food import Menu, restos
|
||||
from data.embeds.food import Menu
|
||||
from startup.didier import Didier
|
||||
|
||||
|
||||
|
|
@ -11,25 +11,17 @@ class SchoolSlash(commands.Cog):
|
|||
|
||||
@slash_command(
|
||||
name="eten",
|
||||
description="Menu voor een bepaalde resto op een bepaalde dag",
|
||||
description="Menu in de UGENT resto's op een bepaalde dag",
|
||||
options=[
|
||||
Option(
|
||||
"dag",
|
||||
description="Dag",
|
||||
type=OptionType.STRING
|
||||
),
|
||||
Option(
|
||||
"resto",
|
||||
description="Resto",
|
||||
type=OptionType.STRING,
|
||||
choices=list(
|
||||
OptionChoice(v, k) for k, v in restos.items()
|
||||
)
|
||||
)
|
||||
]
|
||||
)
|
||||
async def _food_slash(self, interaction: SlashInteraction, dag: str = None, resto: str = "sterre"):
|
||||
embed = Menu(dag, resto).to_embed()
|
||||
async def _food_slash(self, interaction: SlashInteraction, dag: str = None):
|
||||
embed = Menu(dag).to_embed()
|
||||
await interaction.reply(embed=embed)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue