From 5f87605eba54d905af0a0a30a87b4ca939b04f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=85=E8=AF=BA=E7=8B=90?= <212194964+foxcyber907@users.noreply.github.com> Date: Tue, 19 Aug 2025 12:05:32 +0800 Subject: [PATCH] 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. --- bot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 1dab90207..74fc615a7 100644 --- a/bot.py +++ b/bot.py @@ -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 = ""