Fix bug with multi-line menus

They would break the link in Slack. So we make sure to keep menus on a
single line.

Also add a bunch of new emojis.
This commit is contained in:
Mikkel Munch Mortensen 2023-10-26 14:15:13 +02:00
parent cddaee9614
commit f21a941865

View file

@ -149,7 +149,7 @@ else:
if menu is None: if menu is None:
sys.stderr.write("Unable to find the menu of today :(\n") sys.stderr.write("Unable to find the menu of today :(\n")
sys.exit(1) sys.exit(1)
menu = menu["Menutekst"] menu = menu["Menutekst"].replace("\n", " ")
sys.stdout.write(f"The menu of today ({today}) is: {menu}\n") sys.stdout.write(f"The menu of today ({today}) is: {menu}\n")
# Determine appropriate emojis for the menu. # Determine appropriate emojis for the menu.
@ -161,9 +161,24 @@ else:
"flag-es": ["spansk", "spanien"], "flag-es": ["spansk", "spanien"],
"flag-kr": ["korea"], "flag-kr": ["korea"],
"flag-us": ["amerikansk"], "flag-us": ["amerikansk"],
"flag-th": ["thai"],
"hushed": ["surprise", "surprice"], "hushed": ["surprise", "surprice"],
"jack_o_lantern": ["halloween"],
"spider_web": ["halloween"],
"bat": ["halloween"],
"ghost": ["halloween"],
"building_construction": ["byg selv", "byg-selv", "bygselv"], "building_construction": ["byg selv", "byg-selv", "bygselv"],
"fish": ["fisk", "laks", "rødspætte", "sej ", "kulmule", "brosme", "kuller"], "butter": ["smør", "butter"],
"fish": [
"fisk",
"laks","rødspætte",
"sej ",
"kulmule",
"brosme",
"kuller",
"multe",
"torsk",
],
"shrimp": ["reje"], "shrimp": ["reje"],
"pig2": ["skinke", "gris", "nakkefilet", "nakke filet", "flæsk", "pork"], "pig2": ["skinke", "gris", "nakkefilet", "nakke filet", "flæsk", "pork"],
"cow": ["hakkebøf"], "cow": ["hakkebøf"],
@ -173,7 +188,7 @@ else:
"rabbit2": [" hare"], "rabbit2": [" hare"],
"rooster": ["coq au vin"], "rooster": ["coq au vin"],
"egg": [" æg ", " ægge"], "egg": [" æg ", " ægge"],
"butter": ["smør"], "fried_egg": ["spejlæg"],
"falafel": ["falafel"], "falafel": ["falafel"],
"hot_pepper": ["chili", "hot sauce"], "hot_pepper": ["chili", "hot sauce"],
"onion": [" løg"], "onion": [" løg"],
@ -193,7 +208,7 @@ else:
"hamburger": ["burger"], "hamburger": ["burger"],
"sandwich": ["sandwich"], "sandwich": ["sandwich"],
"stuffed_flatbread": ["pita"], "stuffed_flatbread": ["pita"],
"flatbread": ["naanbrød", " naan"], "flatbread": ["naanbrød", " naan", "fladbrød"],
"pie": ["tærte"], "pie": ["tærte"],
"hotdog": ["hotdog", "pølse"], "hotdog": ["hotdog", "pølse"],
"fries": ["fritter "], "fries": ["fritter "],
@ -203,10 +218,12 @@ else:
"stew": ["gryde", "gullasch"], "stew": ["gryde", "gullasch"],
"rice": [" ris "], "rice": [" ris "],
"ramen": ["nudler"], "ramen": ["nudler"],
"burrito": ["tortilla"],
"cloud": ["sky"], "cloud": ["sky"],
"potato": ["kartoffel", "kartofler"], "potato": ["kartoffel", "kartofler"],
"tomato": ["tomat"], "tomato": ["tomat"],
"apple": ["æble"], "apple": ["æble"],
"beer": ["øl ", " øl"],
"peanuts": ["peanut"], "peanuts": ["peanut"],
"baguette_bread": ["flute"], "baguette_bread": ["flute"],
"green_salad": ["mixed salat"], "green_salad": ["mixed salat"],