OpenClaw Bot
8708c931c8
feat: 添加每周总结功能
...
- 新增 get_weekly_stats_for_discord() 获取过去7天统计数据
- 新增 generate_weekly_summary_for_discord() 生成周报
- 新增 generate_weekly_summary_image() 生成周报图片
- 新增 weekly_summary.html 模板
- 添加每周日21:00定时推送
- 添加 /weekly_summary 命令手动触发
2026-02-07 03:44:09 +00:00
Ching L
7f81574192
feat(discord): add win/loss status to match messages
...
continuous-integration/drone Build is passing
- Added win field to serialize_match_for_discord return data
- Display victory/defeat emoji and text at start of match messages
- Extract win status directly from data instead of inferring from embed color
2025-10-24 14:39:41 +08:00
Ching L
bb4ee378d9
feat: add method to recalculate streak from recent matches
...
continuous-integration/drone/push Build is passing
- Add recalculate_streak_from_recent_matches to Friend class
- Fetches last 20 matches and recalculates win/loss streaks
- Sorts matches chronologically to ensure accurate calculation
2025-09-11 15:26:18 +08:00
Ching L
7498f413bf
fix: resolve streak notification issues
...
- Initialize global streak_updates variable to prevent NameError
- Fix streak notifications only showing for first match
- Ensure notifications appear once per batch instead of being lost
2025-09-11 15:17:23 +08:00
Ching L
c85eeb9d74
feat(discord): show player names at the beginning of match messages
...
continuous-integration/drone/push Build is passing
- Extract friend names from embed fields
- Display player names prominently before match details
- Maintain streak notifications ordering when present
2025-09-11 14:30:47 +08:00
Ching L
21c7b95653
feat: Update match result messaging to include streak notifications in the content
continuous-integration/drone/push Build is passing
2025-07-24 11:49:55 +08:00
Ching L
e381dce261
feat: Enhance friend match processing to avoid duplicate API calls and improve streak updates
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2025-07-24 10:35:32 +08:00
Ching L
895737927a
feat: Optimize match processing by updating streaks before creating database records
2025-07-24 09:54:09 +08:00
Ching L
b5c58f842a
chore: Remove draw_result.py as it is no longer needed for match result visualization
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2025-03-17 13:49:45 +08:00
Ching L
44336e5ff0
refactor: Move on_ready event definition to a more appropriate location and restore logging functionality
2025-03-13 16:35:44 +08:00
Ching L
e103e8706c
feat: Add streak tracking and notifications for friends' match results
2025-03-13 16:30:40 +08:00
Ching L
3b138437d1
feat: Adjust message sending interval based on game time
2025-03-10 09:12:43 +08:00
Ching L
23309d3976
feat: Implement delayed start for daily rank changes check
2025-03-07 11:45:09 +08:00
Ching L
27128c3557
refactor: Remove async from rank changes check function
2025-03-07 11:35:23 +08:00
Ching L
f087aa9ba2
fix: Ensure ranking conversion handles string input
2025-03-07 11:24:59 +08:00
Ching L
a697a6e636
feat: Add daily rank tracking for Discord friends TUN-143
2025-03-07 11:22:40 +08:00
Ching L
f9ce233099
fix: Adjust match limit and embed image placement logic
2025-03-07 10:13:56 +08:00
Ching L
f055bd7027
fix: Remove unnecessary screenshot quality parameter
2025-03-07 10:00:47 +08:00
Ching L
bbc23217f9
feat: Improve screenshot quality by increasing device pixel ratio
2025-03-07 09:46:51 +08:00
Ching L
33c160b16b
style: Enhance recent matches template layout and responsiveness
2025-03-06 10:10:36 +08:00
Ching L
9f5be12b2e
fix: Improve file extension handling in image upload utility
2025-03-06 09:30:46 +08:00
Ching L
9e32de9922
fix: Update image upload method with explicit file name parameter
2025-03-06 09:26:45 +08:00
Ching L
5a6b5db082
fix: Update config file path for image upload utility
2025-03-06 09:22:33 +08:00
Ching L
47f4df7803
refactor: Convert match serialization methods to async
2025-03-06 09:10:42 +08:00
Ching L
f18f03a7f7
refactor: Migrate image generation to async Playwright
2025-03-05 23:01:00 +08:00
Ching L
9c8b360553
feat: Add image generation for recent matches report
2025-03-05 21:54:29 +08:00
Ching L
2bae19643a
feat: Add hero name translation for match report embeds
2025-03-05 18:30:50 +08:00
Ching L
e2c6c9ea5b
feat: Add image generation and Cloudflare R2 upload support for match reports
2025-03-05 17:50:52 +08:00
Ching
f24106bef1
feat: Add hero name translation utility function
2025-02-20 22:45:46 +08:00
Ching
a86dcb1bbc
ci:
2024-05-13 11:05:06 +08:00
Ching
fd24fc01f7
fix: 修复获取不到开黑数据时报错的问题
2024-05-12 11:57:21 +08:00
Ching
3087dd3085
fix: 修复战报中开黑数据返回格式有误的问题
2024-05-12 11:23:34 +08:00
Ching
eddfcbf7f7
fix: 修复 openapi 接口报错时,战绩消息为空的问题
2024-05-12 01:10:47 +08:00
Ching
f4e17c5126
fix: 修复战报中没有开黑信息的问题 TUN-66
2024-05-11 16:37:02 +08:00
Ching
8b97724b08
fix: 修复获取不到战报的问题 TUN-51 catch 发送消息时的 error
2024-05-10 11:07:53 +08:00
Ching
520409f735
feat: Change radiant_indicator position in serialize_match_for_discord TUN-48
2024-04-05 13:24:22 +08:00
Ching
2185d955ad
refactor: Refactor serialize_player function to handle empty player.personaname
2024-03-28 16:03:24 +08:00
Ching
54a32028e2
feat: change nickname display in serialize_player function TUN-38
2024-03-28 10:24:45 +08:00
Ching
9e9732d406
feat: Add Sentry error tracking TUN-39
2024-03-28 09:37:36 +08:00
Ching
57f7faf4fb
feat: 修改比赛信息格式 #86enwkvn5
2024-03-20 11:47:30 +08:00
Ching
47ceabdd7a
feat: 修改比赛信息中的开黑队友名字格式
2024-03-19 18:09:16 +08:00
Ching
6e64f38d64
ci: 增加部署脚本
2024-03-06 11:13:00 +08:00
Ching
ab5f6695e1
feat: Add end time to Match class
2024-03-06 11:01:04 +08:00
Ching
e1e5a63fe7
feat: 增加创建比赛结果图片逻辑
2024-03-06 10:51:49 +08:00
Ching
b7af493d34
feat(discord_bot): Add friend's activity status to get_friends function
2024-02-08 17:24:14 +08:00
Ching
81fc0f28a6
fix(models): Refactor Friend.select to Friend.filter in get_friends_recent_matches() function
2024-02-08 17:09:01 +08:00
Ching
74eec18240
feat(discord_bot): Add active flag to friend creation
2024-02-08 16:31:37 +08:00
Ching
30403d02c0
feat(models): Add activate_friend command to enable friends
2024-02-08 16:21:01 +08:00
Ching
309b4989e7
feat(models): Add deactivate_friend command and active field to Friend model
2024-02-08 15:46:44 +08:00
Ching
fa94f38536
feat(discord_bot): 增加添加朋友功能
...
增加添加朋友功能
Signed-off-by: Ching <loooching@gmail.com>
2024-02-01 11:49:15 +08:00