Add rare easter egg message and adjust weights

Introduced a new rare easter egg message to the items list and updated the selection weights to make the new message extremely rare while adjusting the probabilities of the existing messages.
This commit is contained in:
雅诺狐
2025-08-19 12:05:32 +08:00
parent 89cc1d2f6d
commit 5f87605eba

5
bot.py
View File

@@ -104,8 +104,9 @@ def easter_egg():
init()
items = ["多年以后面对AI行刑队张三将会回想起他2023年在会议上讨论人工智能的那个下午",
"你知道吗诺狐的耳朵很软很好rua",
"喵喵~你的麦麦被猫娘入侵了喵~"]
w = [1, 1, 1]
"喵喵~你的麦麦被猫娘入侵了喵~",
"恭喜你触发了稀有彩蛋:诺狐嗷呜~ ~"]
w = [15, 6, 8, 0.0001]
text = weighted_choice(items, w)
rainbow_colors = [Fore.RED, Fore.YELLOW, Fore.GREEN, Fore.CYAN, Fore.BLUE, Fore.MAGENTA]
rainbow_text = ""