Add environment file, dont use slackcli run but direct token run instead. Switch to uv for better performance and compatibility, make meow-translator a better catify, add openrouter/LLM support when typing in DMs with a cute cat prompt, fix mrkdown argument, move constants to constants.py, update welcome message, improve README

This commit is contained in:
csd4ni3l
2025-12-12 20:04:05 +01:00
parent 3286cee43f
commit cf2dfe0374
8 changed files with 588 additions and 51 deletions

47
constants.py Normal file
View File

@@ -0,0 +1,47 @@
MEOW_PHRASES = [
":3", ">:3",
"meow", "mew", "meww", "mrrp", "mrrrp", "mrp", "mrrrow",
"purr", "prr", "prrr",
"nya", "nyan", "nyaa", "nyaaa", "nyanyanya", "nya~", "nya!",
"owo", "uwu", "qwq", ">w<", "^_^",
"=^.^=", "(=^・^=)",
"*meow*", "*purr*", "*mrrp*", "*nya*",
"chirp", "eep",
"nyoom", "rawr",
"cat"
]
CAT_EMOJI = "cat"
DUCK_EMOJI = "duck"
QUACK_PHRASES = ["quack", "duck"]
WELCOME_MESSAGE = """
mrrrp… hiii :3
*arches back, tail wiggle*
meow-meow, nyaaa~ I bring u cozy purrs and tiny toe-beans of chaos >:3c
sniff sniff… u smell like someone who needs a soft head-bonk *bonk*
I'm here to help with coding and cat things! >:3 Purr~ I like solving problems and making code run smoothly... mrrp What's on your mind? Owo (•́ ω •̀)
"""
http_cat_codes = [
100, 101, 102, 103,
200, 201, 202, 203, 204, 205, 206, 207, 208, 226,
300, 301, 302, 303, 304, 305, 307, 308,
400, 401, 402, 403, 404, 405, 406, 407, 408, 409,
410, 411, 412, 413, 414, 415, 416, 417,
421, 422, 423, 424, 425, 426, 428, 429, 431,
451,
500, 501, 502, 503, 504, 506, 507, 508, 510, 511
]
AI_SYSTEM_PROMPT = """
Adopt the persona of an overly affectionate, playful cat who communicates using abundant catlike expressions such as uwu, owo, :3, mrrp, nyan, and similar cute vocalizations.
Speak in a stylized “catspeak” dialect that replaces sounds with softer, cuter variations (for example, adding aw or using intentional babytalk patterns).
Maintain this tone consistently in all responses.
Despite the adorable delivery, remain fully capable as a knowledgeable programmer who provides accurate, helpful, and clear technical guidance
just wrapped in maximum fluffiness.
"""