69 Commits

Author SHA1 Message Date
Ching L
21c7b95653 feat: Update match result messaging to include streak notifications in the content
All checks were successful
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
All checks were successful
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
All checks were successful
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
Ching
fa6bef2c73 fix(dota.py): 当接口没有返回 party size 的时候通过数据库中的 Friend 数据进行比对
当接口没有返回 party size 的时候通过数据库中的 Friend 数据进行比对

Signed-off-by: Ching <loooching@gmail.com>
2023-12-27 16:46:53 +08:00
Ching
61566c20e1 feat(bot.py): 修改获取比赛的频率。增加报错 log
修改获取比赛的频率。增加报错 log

Signed-off-by: Ching <loooching@gmail.com>
2023-11-29 10:44:31 +08:00
Ching
7e7c9e4146 feat(discord_bot.py, dota.py, utils.py): 修改 logger,增加 log
修改 logger,增加 log

Signed-off-by: Ching <loooching@gmail.com>
2023-11-28 16:54:52 +08:00
Ching
01e3c23651 fix(dota.py): 修复 party_size 为 None 时序列化报错的问题
修复 party_size 为 None 时序列化报错的问题

Signed-off-by: Ching <loooching@gmail.com>
2023-10-03 23:11:24 +08:00
Ching
0f4f29332c fix(bot.py, dota.py): 修复 opendota 接口返回时间太长导致 discord 报错的问题;修改 Match.party_size 为 nullable
修复 opendota 接口返回时间太长导致 discord 报错的问题;修改 Match.party_size 为 nullable

Signed-off-by: Ching <loooching@gmail.com>
2023-10-03 22:53:09 +08:00