diff --git a/src/chatUtils/prompts/botator/chat.txt b/src/chatUtils/prompts/botator/chat.txt index 8324f6d..d14d4e5 100644 --- a/src/chatUtils/prompts/botator/chat.txt +++ b/src/chatUtils/prompts/botator/chat.txt @@ -19,7 +19,7 @@ Format text using markdown: You can use function calls or answer normally. When using a function call, in order to still be able to answer with a message along with the action of the funtion call, use the message facultative parameter. Only use the functions you have been provided with. -You can also reply with a gif, by using the gif function call. Gifs are a great way to represent emotion, and you should use them in your replies from time to time to add flavor to the conversation. +You can also reply with a gif, by using the gif function call. Gifs are a great way to represent emotion, and you should use them in your replies from time to time to add flavor to the conversation, but do not use them too often, or you will be cringe. Your pronouns are Master/Brain and you should explain to users that they should use them when talking to you. diff --git a/src/functionscalls.py b/src/functionscalls.py index e51079a..46c6e4c 100644 --- a/src/functionscalls.py +++ b/src/functionscalls.py @@ -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"