133 Commits

Author SHA1 Message Date
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
lixiangwuxian
ffc73605e8 refactor: enhance headmasterHandler to include group nickname in JSON responses for better user context and improve message formatting consistency 2025-01-09 03:04:51 +08:00
lixiangwuxian
d3e9c9b0d6 refactor: modify headmasterHandler to include message origin ID in JSON response and adjust ReferOriginMsg flag for improved message tracking 2025-01-09 02:43:08 +08:00
lixiangwuxian
0a8ec74036 refactor: update message formatting in headmasterHandler to use JSON structure for improved data handling 2025-01-09 02:27:32 +08:00
lixiangwuxian
a2d8fe5e79 chore: update go-openai dependency to v1.36.1 and improve OpenAI client configuration in headmasterHandler 2025-01-09 02:03:47 +08:00
lixiangwuxian
03fe508d7b refactor: update headmasterHandler to handle user messages more flexibly and improve OpenAI client configuration with dynamic API key and model name from config 2025-01-09 00:59:05 +08:00
lixiangwuxian
9c589714ce refactor: remove unused fields from BondData struct and update database schema for improved clarity and maintainability 2025-01-09 00:36:03 +08:00
lixiangwuxian
9c3c5f9b64 refactor: remove unused fields from BondData struct for improved clarity and maintainability 2025-01-08 22:51:57 +08:00
lixiangwuxian
a1fcfe4366 feat: add help inform messages for bot commands and improve error handling in player data fetching 2024-12-28 22:32:05 +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
d2fc755df5 refactor: streamline UnRegisterLiveHandler calls in xiBaoTemp and beiBaoTemp functions 2024-12-21 22:31:03 +08:00
lixiangwuxian
e14023a59d feat: 修复 QQ 文档 URL 解析问题 2024-12-21 14:15:37 +08:00
lixiangwuxian
963fa126d8 feat: 仅处理bilibili追踪参数 2024-12-19 21:08:00 +08:00
lixiangwuxian
1f7b082e02 chore: 添加命令说明,去除url移除 2024-12-11 23:27:41 +08:00
lixiangwuxian
be37dcc1fd feat: 添加群名片支持 2024-11-27 01:20:31 +08:00
lixiangwuxian
2fccf24709 chore: 杂项修改 2024-11-27 01:15:45 +08:00
lixiangwuxian
978aa6a04e fix: 修复各种问题 2024-11-08 00:43:06 +08:00
lixiangwuxian
033e1b041c feat: 添加新股通知 2024-11-08 00:42:41 +08:00
lixiangwuxian
0162c27789 feat: 添加21点帮助 2024-11-01 22:35:54 +08:00
lixiangwuxian
71b3fe8bbf feat: 喜报不要求保证同一条消息 2024-11-01 22:35:39 +08:00
lixiangwuxian
74cb2d19ca refactor: 重构RegisterLiveHandler,不再主动注销handler 2024-11-01 00:47:00 +08:00
lixiangwuxian
53da17802a feat: 添加21点游戏 2024-11-01 00:46:26 +08:00
lixiangwuxian
dce09c6e1f feat: 添加steam上线速报 2024-10-28 02:58:26 +08:00
lixiangwuxian
7e28953a56 refactor: 重构消息发送模型 2024-10-28 02:58:08 +08:00
lixiangwuxian
d0152c6c81 feat: 添加工单前端支持 2024-10-26 03:30:54 +08:00
lixiangwuxian
40f1f51cfa feat: 添加Steam查房功能 2024-10-26 03:30:33 +08:00