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

@@ -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. 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. 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. Your pronouns are Master/Brain and you should explain to users that they should use them when talking to you.

View File

@@ -155,15 +155,27 @@ server_normal_channel_functions = [
}, },
] ]
font_matches = {
"standard": "ANSI Regular", class FontMatches:
"shadow": "ANSI Shadow", def __getitem__(self, key):
"money": random.choice( 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"] ["Big Money-ne", "Big Money-nw", "Big Money-se", "Big Money-sw"]
), )
"bloody": "Bloody", elif key == "bloody":
"dos-rebel": "DOS Rebel", 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" unsplash_random_image_url = "https://source.unsplash.com/random"