Merge branch 'dev' of https://github.com/Paillat-dev/Botator into chat-processing-refactor

This commit is contained in:
2023-08-21 11:38:28 +02:00
2 changed files with 22 additions and 10 deletions

View File

@@ -155,15 +155,27 @@ server_normal_channel_functions = [
},
]
font_matches = {
"standard": "ANSI Regular",
"shadow": "ANSI Shadow",
"money": random.choice(
["Big Money-ne", "Big Money-nw", "Big Money-se", "Big Money-sw"]
),
"bloody": "Bloody",
"dos-rebel": "DOS Rebel",
}
class FontMatches:
def __getitem__(self, key):
if key == "standard":
return "ANSI Regular"
elif key == "shadow":
return "ANSI Shadow"
elif key == "money":
return random.choice(
["Big Money-ne", "Big Money-nw", "Big Money-se", "Big Money-sw"]
)
elif key == "bloody":
return "Bloody"
elif key == "dos-rebel":
return "DOS Rebel"
else:
raise ValueError(f"Invalid key: {key}")
# Example usage:
font_matches = FontMatches()
unsplash_random_image_url = "https://source.unsplash.com/random"