洛水居室
eed418477f
♻️ Rename HTML templates to use .jinja2 extension
...
Previously, all templates were named with the .html extension, which caused problems for editors to recognize the Jinja2 syntax used in them. In this commit, all templates have been renamed to use the .jinja2 extension to better reflect their use of Jinja2 and to improve editor recognition.
2023-05-09 19:19:32 +08:00
洛水居室
1f1734ca03
🐛 Fix TypeError
exception caused by characters
is None
2023-03-18 22:03:56 +08:00
LittleMengBot
72154924be
✨ Update /play_card
placeholder image
...
Update current player showcase after updating character list.
Use asynchronous locks to make file read/write thread-safe.
Update `EnkaNetworkCache`.
---------
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2023-03-17 13:33:29 +08:00
洛水居室
4d4aa30069
🎨 Update Callback Query Handler
2023-03-16 23:00:04 +08:00
洛水居室
233e7ab58d
♻️ PaiGram V4
...
Co-authored-by: luoshuijs <luoshuijs@outlook.com>
Co-authored-by: Karako <karakohear@gmail.com>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2023-03-14 09:27:22 +08:00
洛水居室
5f3da3b55c
🐛 Fix Handling Exception Error
2023-02-09 13:57:16 +08:00
洛水居室
2cf4b7e55d
🐛 Fix Bug Due to enkanetwork.py
Code Update
...
5b344f609f
eaab479b8b
2023-02-08 22:56:25 +08:00
洛水居室
e31d4bb48c
🎨 Update Player Card Restricts Time
2023-02-01 17:01:36 +08:00
omg-xtao
28e0890390
✨ Support Flip In Player Cards
2023-01-20 23:43:39 +08:00
omg-xtao
b0576589b7
✨ Support File Cache Player Cards
2023-01-20 23:43:39 +08:00
Nahida
764834de2f
🎨 Move All user_mismatch
Notice to the Aame Place
2023-01-08 04:01:28 +08:00
洛水居室
6371db3b5e
✨ Use Redis to Cache EnkaNetwork Data
2022-12-27 21:56:12 +08:00
洛水居室
0f63a5aaff
🔥 Remove fix_skills_level
...
EnkaNetwork.py has submitted this fix
[Add Skill boosted](821ce2f420
)
2022-12-11 15:03:23 +08:00
洛水居室
80b96d4c51
🎨 Update get_args
2022-12-01 10:27:27 +08:00
洛水居室
a2656d2df7
✨ Use create_deep_linked_url
to create url
2022-11-28 16:38:49 +08:00
hakureiyuyuko
3f4d9031b7
📝 Update player_cards.py
...
6
2022-11-17 16:34:59 +08:00
洛水居室
ff6f0b6f39
🐛 Fix wrong message reply
2022-11-14 21:56:02 +08:00
洛水居室
15d872ba35
🐛 Fix missing text descriptions
...
修复部分文本缺失问题
2022-10-30 21:42:13 +08:00
omg-xtao
bf90ca55f9
🎨 优化报错提醒
2022-10-22 21:54:04 +08:00
Chuangbo Li
f122e21092
✨ 增加 html to image 的缓存
...
* 增加 html to image 缓存
* 对 template_service.render 进行封装,管理缓存逻辑
* cache key 为 html 的 sha256
* cache value 为 reply_photo 后 telegram 返回的 file_id
* 存入 redis,并设置合理的 ttl
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-22 15:03:59 +08:00
洛水居室
55f3086c4c
🐛 修复回复消息时 photo
为 None
引发的错误
2022-10-19 15:15:47 +08:00
Chuangbo Li
ada56a2382
✨ 增加用于模板预览和调试的 web server
2022-10-12 21:39:47 +08:00
洛水居室
59be6fc7a4
🎨 Update the text of a reply when bot query user does not exist
2022-10-12 17:35:59 +08:00
洛水居室
ec8175eea2
🎨 提高代码质量
2022-10-11 14:45:07 +08:00
b1c6e7456f
⚡ ️ 为抽卡分析添加缓存
2022-10-10 11:37:58 +08:00
洛水居室
4843e3d846
🎨 修改圣遗物评分返回的颜色
2022-10-09 12:52:39 +08:00
9b10e382b0
✨ 支持使用 query_selector 限制截图区域
2022-10-08 15:37:30 +08:00
洛水居室
0f343a0e3c
🎨 添加 enka_network_api_agent
可选配置项
2022-10-07 13:56:04 +08:00
omg-xtao
ec71907701
♻️ 重写 Aiohttp 超时抛出异常
...
Co-authored-by: Karako <karakohear@gmail.com>
2022-09-28 08:22:47 +08:00
洛水居室
340741543a
🎨 角色卡片插件 get_player_cards
函数添加 @error_callable
修饰器
2022-09-15 09:29:41 +08:00
0d4febd7f5
🔧 添加用于EnkaNetworkAPI的User-Agent
2022-09-11 17:21:27 +08:00
Karako
fa849d3192
🐛 修复兼容问题
...
使代码兼容 `python 3.8`
2022-09-10 22:46:49 +08:00
洛水居室
21071aa80a
✨ 角色卡片添加 callback_query.answer
回复
2022-09-10 20:56:22 +08:00
omg-xtao
ce57672274
🐛 修复因命座加成导致的技能等级错误
2022-09-10 20:56:04 +08:00
Chuangbo Li
87c7253e3a
♻️ 重写 restricts
修饰器
...
* 🔧 `restricts` 修饰器增加 `no_overlapping` 参数,避免同一个 user 对一个 handler 的多次调用时间重叠
* ♻ 移除 `try_delete_message` 参数 使用 `sleep` 替代
* 使用 `asyncio.Lock` 保证 `context.user_data` 的计数器 `usage_count` 线程安全
* 增加 `no_overlapping` 参数,在上一条一样的命令返回之前,忽略重复调用
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-09-10 19:57:23 +08:00
kotoriのねこ
c21e906804
🐛 移除自动消息删除
2022-09-09 12:45:03 -05:00
洛水居室
2d96dfb962
🎨 给角色卡片回复信息添加 caption
2022-09-10 00:41:23 +08:00
洛水居室
d6b38a0e63
💥 提高 get_player_cards
函数洪水防御标准
2022-09-10 00:31:06 +08:00
35630e280a
🎨 提高代码质量
2022-09-10 00:27:56 +08:00
洛水居室
6e5a803896
🐛 修复洪水修饰器导致角色卡片命令无法调用的问题
2022-09-10 00:08:31 +08:00
洛水居室
65f9f03479
✨ 角色卡片添加 InlineKeyboardButton
查询
2022-09-09 23:56:05 +08:00
310f82e180
🍱 更新角色昵称
2022-09-09 23:50:10 +08:00
洛水居室
321e4e7aac
🐛 修复角色卡片获取信息为空导致的报错
2022-09-09 23:06:31 +08:00
洛水居室
a046b22f3a
✨ 添加角色卡片插件
...
Co-authored-by: Li Chuangbo <im@chuangbo.li>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
Co-authored-by: luoshuijs <luoshuijs@outlook.com>
2022-09-09 22:50:17 +08:00