更新 bot.py

回调彩蛋喵~
This commit is contained in:
ikun两年半
2025-08-19 12:20:43 +08:00
committed by GitHub
parent 1b2c5393e5
commit 1efe5066d4

6
bot.py
View File

@@ -66,7 +66,11 @@ async def request_shutdown() -> bool:
def easter_egg():
# 彩蛋
init()
text = "多年以后面对AI行刑队张三将会回想起他2023年在会议上讨论人工智能的那个下午"
items = ["多年以后面对AI行刑队张三将会回想起他2023年在会议上讨论人工智能的那个下午",
"你知道吗诺狐的耳朵很软很好rua",
"喵喵~你的麦麦被猫娘入侵了喵~"]
w = [1, 1, 1]
text = weighted_choice(items, w)
rainbow_colors = [Fore.RED, Fore.YELLOW, Fore.GREEN, Fore.CYAN, Fore.BLUE, Fore.MAGENTA]
rainbow_text = ""
for i, char in enumerate(text):