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