22 Commits

Author SHA1 Message Date
074e7e9ed9 refactor: 优化 MsgInHandler 函数中的触发器匹配逻辑,使用字符串前缀匹配增强代码的灵活性和可读性 2025-07-17 15:42:07 +08:00
c434a3f0ce refactor: 优化 MsgInHandler 函数,改进消息处理逻辑以支持多条文本消息的触发器匹配,增强代码的灵活性和可读性 2025-07-17 14:44:45 +08:00
lixiangwuxian
5ce7f7bba4 fix: 在 MsgInHandler 中添加对 StructuredMsg 长度的检查,避免潜在的数组越界错误;更新 PlayerDataLite 结构体,添加 Gorm 标签以支持数据库映射 2025-07-05 20:51:59 +08:00
lixiangwuxian
e84d64100c feat: 从手写sql迁移至gorm 2025-07-05 15:46:36 +08:00
6767077867 feat: 添加结构化消息json解析逻辑,补充对应的异常捕获 2025-06-16 10:49:26 +08:00
662add9c3e refactor: 更新模块路径,将所有引用的路径从旧的 git.lxtend.com/qqbot 更改为新的 git.lxtend.com/lixiangwuxian/qqbot 2025-06-11 19:13:52 +08:00
lixiangwuxian
546f1abcd1 feat: 在 MsgInHandler 中添加 Panic 恢复日志记录,并在出现 Panic 时发送警告消息 2025-04-10 01:05:44 +08:00
lixiangwuxian
eae9e4ce08 fix: 修改 MsgInHandler 函数的返回值为 nil,以确保在没有回复消息时返回空值,提升代码的清晰度 2025-04-09 23:39:19 +08:00
lixiangwuxian
a4585582ca fix: 修正 MsgInHandler 函数中的 nil 检查逻辑,以确保在回复消息为空时不发生错误 2025-04-09 23:37:25 +08:00
lixiangwuxian
7f0560b56e fix: 修改多个处理函数的返回类型为指针类型,以提高内存使用效率并避免不必要的拷贝 2025-04-09 23:28:39 +08:00
lixiangwuxian
fd34e67142 fix: 在 MsgInHandler 和 NewWebSocketClient 中增强错误处理,添加详细的日志记录以捕获异常信息和堆栈跟踪 2025-03-29 14:58:44 +08:00
lixiangwuxian
9272c426e3 refactor: update logging format in MsgInHandler to include color coding for incoming and outgoing messages, enhancing readability and context in logs 2025-01-15 10:47:07 +08:00
lixiangwuxian
ff8d077f1c fix: update HelpInforms key usage from triggerName to category for improved organization 2024-12-26 15:23:52 +08:00
lixiangwuxian
a79991c4ff feat: enhance help inform structure and update command descriptions across various handlers 2024-12-26 11:35:34 +08:00
lixiangwuxian
74cb2d19ca refactor: 重构RegisterLiveHandler,不再主动注销handler 2024-11-01 00:47:00 +08:00
lixiangwuxian
7e28953a56 refactor: 重构消息发送模型 2024-10-28 02:58:08 +08:00
lixiangwuxian
5a56f6fdc7 feat: 添加关键词回复 2024-10-20 15:47:00 +08:00
lixiangwuxian
049b5774bf feat: 更新权限系统 2024-10-20 02:46:56 +08:00
lixiangwuxian
48891fbd0a feat: 添加帮助功能 2024-10-15 23:07:49 +08:00
lixiangwuxian
97234edda8 feat: 添加cqjson处理和url处理 2024-10-13 15:18:43 +08:00
lixiangwuxian
1495ac516b refactor: 重命名Message.RawMsg 2024-10-13 14:40:32 +08:00
lixiangwuxian
4d6c22ff7b init: 初始化仓库 2024-10-08 01:34:26 +08:00