From 4dcb7fbecfcdb399af3df314bf4ab4dc83c8c437 Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Sun, 17 Aug 2025 19:31:02 +0800 Subject: [PATCH] =?UTF-8?q?feat(core):=20=E5=90=AF=E5=8A=A8=E6=97=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9A=8F=E6=9C=BA=E5=B0=8F=E8=B4=B4=E5=A3=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在系统初始化完成后的启动信息中,增加了一个随机显示的小贴士(彩蛋)功能。 每次启动时会从预设的短语列表中随机选择一条进行展示,增加趣味性。 --- src/main.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index a990cffc3..6e07ee692 100644 --- a/src/main.py +++ b/src/main.py @@ -82,7 +82,19 @@ class MainSystem: # 其他初始化任务 await asyncio.gather(self._init_components()) - + phrases = [ + "我们的代码里没有bug,只有‘特性’.", + "你知道吗,雅诺狐的耳朵很好模", + "你群最高技术力——言柒姐姐!", + "初墨小姐宇宙第一(不是)", + "world.execute(me);", + "正在尝试连接到MaiBot的服务器...连接失败,正在转接到maimaiDX", + "你的bug就像星星一样多,而我的代码像太阳一样,一出来就看不见了。", + "温馨提示:请不要在代码中留下任何魔法数字,除非你知道它的含义。", + "世界上有10种人:懂二进制的和不懂的。" + ] + from random import choice + eggs = choice(phrases) logger.info(f""" 全部系统初始化完成,{global_config.bot.nickname}已成功唤醒 ========================================================= @@ -92,8 +104,9 @@ MaiMbot-Pro-Max(第三方改版) 🌐 项目地址: https://github.com/MaiBot-Plus/MaiMbot-Pro-Max 🏠 官方项目: https://github.com/MaiM-with-u/MaiBot ========================================================= -这是基于原版MMC的社区改版,包含增强功能和优化 +这是基于原版MMC的社区改版,包含增强功能和优化(同时也有更多的'特性') ========================================================= +小贴士:{eggs} """) async def _init_components(self):