Skip to content

Commit

Permalink
Add Cheese to /food command
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanC committed May 27, 2024
1 parent 17c6322 commit b76c15e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions extensions/food.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
plugin: GatewayPlugin = GatewayPlugin("food")
foodTypes: list[str] = [
"Burger",
"Cheese",
"Chicken",
"Dessert",
"Hot Dog",
Expand Down Expand Up @@ -80,6 +81,20 @@ async def CommandFood(
logger.warning(
f"Recieved unknown source {source} for food type {type}"
)
case "Cheese":
source = random.randint(1, 3)

match source:
case 1:
result = await GetRandomImage("Cheese")
case 2:
result = await GetRandomImage("cheesemaking")
case 3:
result = await GetRandomImage("grilledcheese")
case _:
logger.warning(
f"Recieved unknown source {source} for food type {type}"
)
case "Chicken":
source = random.randint(1, 3)

Expand Down

0 comments on commit b76c15e

Please sign in to comment.