Commit Graph

17 Commits

Author SHA1 Message Date
洛水居室
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
LittleMengBot
7c3d198c7f
Update /weapon result, add some weapon's alias 2023-04-07 21:07:59 +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
洛水居室
346e78481f
🐛 Fix failure to add entry when description is empty 2023-02-22 14:20:19 +08:00
洛水居室
e20e20111d
Add inline search 2022-12-04 19:56:39 +08:00
洛水居室
80b96d4c51
🎨 Update get_args 2022-12-01 10:27:27 +08:00
洛水居室
304eb5e740
🐛 Fix weapon plugin not handling notice correctly in AssetsCouldNotFound exception 2022-11-19 16:08:35 +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
Chuangbo Li
ada56a2382
增加用于模板预览和调试的 web server 2022-10-12 21:39:47 +08:00
Chuangbo Li
345edb9fe5
🎨 使用 black 格式化所有代码 2022-10-10 19:07:28 +08:00
Karako
4c702515a0
Enhance AssetsService
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-07 13:02:49 +08:00
Karako
e038046365
🎨 改进代码
💡 给 `daily_material` 模块添加注释
🎨 使用 `AssetsService` 管理 `weapon` 模块的武器和材料图标
2022-09-18 12:19:29 +08:00
Karako
8f424bf0d4
♻ 更新V3版本
♻️ 重构插件系统
⚙️ 重写插件
🎨 改进代码结构
📝 完善文档

Co-authored-by: zhxy-CN <admin@owo.cab>
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
Co-authored-by: Li Chuangbo <im@chuangbo.li>
2022-09-08 09:08:37 +08:00
Karako
e0cd40d41a
🐛 修复爬虫图片类型错误的问题 2022-09-01 12:20:00 +08:00
洛水居室
65cf31e68b
🎨 提高代码质量 2022.8.31 2022-08-31 14:48:03 +08:00
Karako
91a133b694
♻️ 重写 wiki 模块和相关插件
1. 使用 `pydantic` 重写了 wiki 模块所使用的 model
2. 添加了 weapon_level.json 用于后续计算武器升级所需的经验
3. 修改了 wiki 插件,以适应新的 model
2022-08-28 22:37:31 +08:00
洛水居室
7adf404600
♻ 移动插件路径 区分系统插件和查询插件 2022-08-09 20:25:25 +08:00