109 Commits

Author SHA1 Message Date
lixiangwuxian
cfe6c177e1 fix: 移除 fetchself 解析器中的多余注释,简化代码结构以提高可读性 2025-03-29 16:44:08 +08:00
lixiangwuxian
27d5291f2b fix: 修改 fetchself 解析器中的命令执行逻辑,简化命令构建方式以提高代码可读性 2025-03-29 15:17:33 +08:00
lixiangwuxian
84b6d0a9e3 fix: 在 fetchSelf 函数中添加日志记录,以捕获 parseSystemInfo 失败时的错误信息 2025-03-29 15:15:50 +08:00
lixiangwuxian
fd34e67142 fix: 在 MsgInHandler 和 NewWebSocketClient 中增强错误处理,添加详细的日志记录以捕获异常信息和堆栈跟踪 2025-03-29 14:58:44 +08:00
lixiangwuxian
8d7b0cd266 fix: 移除 fetchCmd 中的 screenfetch,简化系统信息获取命令 2025-03-29 14:54:55 +08:00
lixiangwuxian
a45d1d64d2 feat: 在注册文件中添加 fetchself 处理程序,并实现系统信息获取功能 2025-03-29 14:50:54 +08:00
ceb38d5830 fix: 更新 RoundCheckSteamPlaying 函数中的 FromMsg 以使用配置管理器获取报告组 ID 2025-03-25 10:05:01 +08:00
lixiangwuxian
6dd174d9f1 fix: 避免阻塞主流程 2025-03-24 23:40:37 +08:00
lixiangwuxian
99ab104312 fix: 移除 RestartBotHandler 中的 token 日志记录,以提高安全性 2025-03-24 23:34:25 +08:00
lixiangwuxian
6715d8324c feat: 在 actionManager 中添加等待机制,确保在发送消息前 bot 已启动;新增初始化处理程序以发送初始化完成消息 2025-03-24 23:29:14 +08:00
lixiangwuxian
c72817aee6 feat: 在 RestartBotHandler 中添加日志记录以输出获取到的 token,便于调试和监控 2025-03-24 23:24:51 +08:00
lixiangwuxian
afd80bb1bf fix: 优化绑定功能的错误提示信息,增加了对用户输入的详细说明,同时在获取玩家数据时添加了重试机制以提高稳定性 2025-03-24 23:20:54 +08:00
f87922883e fix: Update configuration structure to include Management section for WebSocket and HTTP server addresses 2025-03-24 16:28:15 +08:00
a13eaaf5a4 fix: 添加新功能请求链接到帮助信息中,以便用户更方便地提交功能请求 2025-03-24 16:02:03 +08:00
lixiangwuxian
15a3677408 feat: webhook回调支持口令鉴权 2025-03-24 11:29:05 +08:00
lixiangwuxian
c6fbedc859 fix: 更新喜报和悲报的帮助信息,支持换行或多消息发送;修正图片文件路径的构建方式,使用动态路径替代静态路径 2025-03-18 19:20:57 +08:00
lixiangwuxian
c0764036ab fix: 更新疯狂星期四文案处理逻辑,添加周四判断和不回复机制 2025-03-17 19:01:55 +08:00
lixiangwuxian
83b0545747 fix: 修复疯狂星期四处理逻辑中的文案注册和回复内容 2025-03-17 14:28:11 +08:00
lixiangwuxian
5b98da8cef fix: 更新疯狂星期四文案处理逻辑 2025-03-14 17:43:15 +08:00
lixiangwuxian
a1a64334c8 feat: 添加疯狂星期四文案功能
- 新增 kfccrazy 包,包含随机输出和添加疯狂星期四文案的功能
- 在 router.go 中重新启用重启机器人处理器的路由
- 创建 kfc_crazy 数据库表以存储文案内容
2025-03-14 17:41:59 +08:00
lixiangwuxian
8f06631266 fix: 更新帮助信息提示内容
将帮助信息中的提示文本从“!help [分类] 查看下面的分类功能”修改为“请输入!help [分类] 查看下面的分类功能”,以提高用户的使用体验。
2025-03-14 15:50:41 +08:00
lixiangwuxian
711c4fd3d6 refactor: 简化Steam游戏状态检查逻辑
- 移除checkDiffSteamGameStatus中玩家退出游戏的冗余检查
- 优化RoundCheckSteamPlaying中的日志输出
- 删除未使用的代码片段
2025-03-09 17:44:30 +08:00
lixiangwuxian
93c84d50bb feat: 重新启用Steam游戏状态定期检查功能
- 取消注释RoundCheckSteamPlaying()的启动
- 将发送消息改为日志输出,便于调试
- 移除未使用的action导入
2025-03-09 14:51:33 +08:00
lixiangwuxian
c9f063833b fix: 暂时禁用Steam游戏状态定期检查功能 2025-03-09 14:50:26 +08:00
lixiangwuxian
e2be7bd21d feat: 为Git仓库管理接口添加操作日志
为代码拉取、构建和重启处理程序添加日志记录,增强操作可追溯性和调试信息
2025-03-09 14:34:21 +08:00
lixiangwuxian
300fdbd957 refactor: 优化Steam游戏状态检查逻辑 2025-03-09 14:34:06 +08:00
lixiangwuxian
cfd20cbefe feat: 为QQ机器人添加Git仓库管理接口
新增了Git仓库管理相关功能:
1. 在router中添加/git路由组
2. 新增代码拉取、构建和重启的HTTP接口
3. 将Git拉取逻辑抽取到util包中
4. 支持通过HTTP请求触发代码拉取、构建和重启操作
5. 扩展CORS配置,允许git.lxtend.com域名访问
2025-03-09 01:32:49 +08:00
lixiangwuxian
8049ec7946 feat: 为Steam游戏状态检查添加夜间时段检查功能
在Steam游戏状态检查中增加了凌晨1点至早上8点的时间段过滤,避免在夜间进行不必要的检查
2025-03-09 01:12:36 +08:00
lixiangwuxian
78b0b63f90 fix: 优化Steam游戏重复登录通知逻辑 2025-03-09 01:06:36 +08:00
lixiangwuxian
3a26404755 feat: 为Steam游戏状态检查添加重复登录游戏的防重复通知机制
优化Steam游戏状态检查逻辑,增加了以下特性:
1. 记录玩家游戏退出信息
2. 实现30分钟内重复登录同一游戏时抑制通知
3. 修改checkDiffSteamGameStatus函数返回值,增加玩家信息返回
4. 更新playingMap的方式更加安全和清晰
2025-03-09 01:04:26 +08:00
lixiangwuxian
2eb9716d24 refactor: 移除 ScoreSaber 和 BeatLeader 热门成绩相关代码,并为玩家信息添加头像显示 2025-03-09 00:24:44 +08:00
lixiangwuxian
bfac7dfa59 refactor: 调整 BeatLeader 模块,注释并移除热门成绩相关功能 2025-03-08 19:22:41 +08:00
lixiangwuxian
fcc99efe7e feat: 优化最近成绩获取,并发下载歌曲封面并在消息中展示 2025-03-08 18:14:57 +08:00
lixiangwuxian
861ee37da3 fix: 调整最近成绩消息的换行符处理 2025-03-08 18:10:47 +08:00
lixiangwuxian
e6cb03fdc5 fix: 修正图片文件路径生成逻辑,移除硬编码的文件前缀 2025-03-08 17:55:31 +08:00
lixiangwuxian
e4b25e1845 feat: 在最近成绩消息中添加歌曲缩略图 2025-03-08 17:52:34 +08:00
lixiangwuxian
06dc8ea4d1 fix: 修改图片处理逻辑,将文件扩展名从 .png 更改为 .jpeg 2025-03-08 17:35:10 +08:00
lixiangwuxian
79f62f1b7f refactor: 重构配置管理,使用强类型配置结构并更新相关代码 2025-03-08 17:08:28 +08:00
lixiangwuxian
13ea5d7f98 feat: 重构消息处理模块,引入统一的消息接口和类型安全的消息解析 2025-03-08 16:10:06 +08:00
lixiangwuxian
e0637ab81f refactor: update file paths to use /tmp/qqbot for image generation 2025-02-23 01:13:26 +08:00
lixiangwuxian
38940fa07f refactor: centralize temporary file path generation and update file references 2025-02-22 18:40:26 +08:00
lixiangwuxian
d464f18fbd feat: add GetGroupMemberList function to actionManager for retrieving group member IDs and initiate websocket communication 2025-01-15 15:36:20 +08:00
lixiangwuxian
f9be1e6464 fix: correct variable name in RoundCheckSteamPlaying function to use gameList instead of gamePlayingMap for accurate game status reporting 2025-01-15 14:58:40 +08:00
lixiangwuxian
fd2ebce29e refactor: update checkDiffSteamGameStatus to return a map for game statuses and add getAllSteamID function for retrieving all Steam IDs; enhance help messages for binding and unbinding Steam accounts 2025-01-15 11:14:11 +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
bad24ad2ec feat: implement cleanup tasks for temporary files and database optimization 2025-01-15 10:42:07 +08:00
lixiangwuxian
db8ced6807 feat: add scheduled cleanup tasks for temporary files and old scores in works and beatleader/scoresaber services 2025-01-15 10:36:15 +08:00
lixiangwuxian
d4d371fbbc refactor: extend user message history retention and increase maximum history size for improved context management in headmasterHandler 2025-01-10 02:24:10 +08:00
lixiangwuxian
cd1e7cbe1c refactor: enhance headmasterHandler to include received time in JSON responses for improved message context and consistency in message formatting 2025-01-10 02:20:52 +08:00
lixiangwuxian
8dcef53924 feat: implement time wheel for scheduling tasks and refactor bond and steam playing checks to use new task scheduling utility 2025-01-10 01:27:50 +08:00