修复了@的bug和日程生成bug,增加了简化输出的配置选项
This commit is contained in:
SengokuCola
2025-03-01 00:32:26 +08:00
parent c3e555fd70
commit 1c977ce2ca
9 changed files with 39 additions and 68 deletions

View File

@@ -97,7 +97,6 @@ class Message:
trans_list = []
start = 0
print(f"\033[1;34m[调试信息]\033[0m 原始消息: {message}")
while True:
# 查找下一个CQ码的开始位置
cq_start = message.find('[CQ:', start)
@@ -129,7 +128,7 @@ class Message:
# 更新start位置到当前CQ码之后
start = cq_end + 1
print(f"\033[1;34m[调试信息]\033[0m 提取的消息对象:列表: {cq_code_dict_list}")
# print(f"\033[1;34m[调试信息]\033[0m 提取的消息对象:列表: {cq_code_dict_list}")
#判定是否是表情包消息,以及是否含有表情包
if len(cq_code_dict_list) == 1 and cq_code_dict_list[0]['type'] == 'image':