Commit Graph

177 Commits

Author SHA1 Message Date
LittleMengBot
5f33c5fc3a
Add HTML rendering for /material 2023-04-04 22:02:14 +08:00
LittleMengBot
d9cb6f6164
🎨 Update /material source 2023-04-02 12:36:27 +08:00
洛水居室
6e9c42c4dd
🎨 Update the outdated project name 2023-03-31 14:01:03 +08:00
洛水居室
a24c94f6e9
🐛 Directly throw an exception when encountering invalid content 2023-03-29 19:42:14 +08:00
bf9a4478a3
⬆️ Bump all dependencies
fix #497
2023-03-27 19:55:39 +08:00
洛水居室
a06eb61b49
🎨 Improve code quality 2023-03-27 10:55:12 +08:00
洛水居室
c9d85e774a
🎨 Use getUserGameRolesByCookie to check whether the cookies have expired 2023-03-27 10:42:59 +08:00
洛水居室
139c6758ae
🐛 Fix issue of incorrect parameters being passed when calling add_delete_message_job 2023-03-26 16:12:11 +08:00
洛水居室
87354ce417
🐛 Fix issue of not be able to get RedisDB instance 2023-03-26 15:59:37 +08:00
洛水居室
444d3e2bdc
Support SQLite 2023-03-25 11:17:38 +08:00
洛水居室
064a4083c5
🐛 Fix the IntegrityError caused by not executing the update command when updating player_info data 2023-03-23 10:50:47 +08:00
洛水居室
15f50253a3
🐛 Fix instance PlayerInfoSQLModel is not persisted 2023-03-17 17:45:19 +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
洛水居室
3dbb0e74a0
🎨 Set the running mode to non-blocking 2023-03-15 20:41:41 +08:00
洛水居室
4e87424766
Add binding by player ID 2023-03-15 20:32:36 +08:00
洛水居室
6e3f7ce815
🎨 Improve code quality
Unnecessary elif / else block after continue
2023-03-15 16:33:59 +08:00
洛水居室
7bca698c18
🐛 Fix wrong file identifier specified
When encountering an error file ID, it should be removed from the cache.
2023-03-15 16:33:59 +08:00
洛水居室
e086f011a1
🐛 Fix the exception caused by account ID not found 2023-03-15 16:06:37 +08:00
洛水居室
c5d3e6a9c1
🎨 Refresh Objects Explicitly 2023-03-15 12:22:09 +08:00
洛水居室
a9b76ac187
🐛 Fix the AdminHandler not following the block parameter of the handler to be wrapped. 2023-03-14 14:39:22 +08:00
洛水居室
0743367a7f
🎨 Set the timeout for resource downloads to 10 seconds 2023-03-14 14:17:19 +08:00
洛水居室
7805a2879e
🐛 Fix incorrect passing of context 2023-03-14 12:19:09 +08:00
洛水居室
21db8bb85d
🐛 Fix incorrect addition of admin list to cache 2023-03-14 12:15:19 +08:00
洛水居室
33be295ac8
🐛 Fix the security vulnerability where anyone can execute admin commands 2023-03-14 10:11:43 +08:00
洛水居室
01727ca94b
🐛 Fix Exception that User Data is None 2023-03-14 09:45:55 +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
洛水居室
9d8d6deda7
🎨 Update Networking backend tweaks 2023-02-19 20:40:27 +08:00
omg-xtao
38cd0925d0
🎨 Add Download File Size Setting 2023-02-18 13:03:58 +08:00
omg-xtao
ea94583a5b
Support calendar 2023-02-16 16:47:48 +08:00
洛水居室
3839d00a95
Update Unit Test
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2023-02-11 16:29:11 +08:00
omg-xtao
65144bb469
fix: CookiesNotFoundError when setcookie
* fix: CookiesNotFoundError when setcookie

* remove cookies_database_data
2023-01-27 11:50:47 +08:00
洛水居室
7ab92b630c
Add Allow Bind User Invite Bot 2023-01-23 21:34:58 +08:00
401e55f4bc
🐛 fix get public cookies 2023-01-14 22:45:06 +08:00
Nahida
764834de2f
🎨 Move All user_mismatch Notice to the Aame Place 2023-01-08 04:01:28 +08:00
Nahida
869713542a
🎨 Add Optional Password for Redis 2023-01-05 15:36:10 +08:00
d71958a9be
🐛 fix enka assets 2023-01-05 10:29:59 +08:00
洛水居室
471ed052ea
Use ChatMemberHandler to Get Chat Member Updates
使用 ChatMemberHandler 获取 chat member updates

解决在部分群开启了隐藏成员列表后Bot无法工作的问题
2023-01-03 17:14:57 +08:00
洛水居室
09aedd5100
🎨 Simplify Exception Log for clean_message 2022-12-30 16:49:15 +08:00
洛水居室
6552606cc7
🎨 Improve code quality 2022-12-25 21:26:08 +08:00
洛水居室
a8d1fe19ff
🐛 Fix Account Info Not Completely Remove from Database 2022-12-25 15:56:52 +08:00
洛水居室
bcb5c4c2b7
Fix Cookies Cache 2022-12-14 23:57:37 +08:00
洛水居室
611ad8dd4e
🐛 Fix expired cookies add to cache
梅开二度
2022-12-14 23:22:11 +08:00
洛水居室
4b976f70d5
♻ Refactor ApiHelper 2022-12-10 20:37:43 +08:00
洛水居室
ab793a07ce
🐛 Fix expired cookies add to cache 2022-12-10 20:18:05 +08:00
Karako
330a7b22e8
🐛 fix AssetsService
🐛 修复 `AssetsService`
2022-12-07 16:40:30 +08:00
洛水居室
e20e20111d
Add inline search 2022-12-04 19:56:39 +08:00
洛水居室
7f1bad08da
🐛 Fix wrong call of UserService.add_user method 2022-12-01 18:40:02 +08:00
洛水居室
f3786b19f4
🔥 Remove pymysql 2022-11-30 16:45:53 +08:00
洛水居室
fb03f09b9d
Add delete user command 2022-11-30 11:49:48 +08:00
洛水居室
d5f8bf505a
🎨 Update get chat info of clean_message 2022-11-29 22:17:48 +08:00
洛水居室
6b00edde7c
Add special handler for TypeHandler of install_plugins 2022-11-29 20:07:43 +08:00
洛水居室
f19c9bd67a
Add get_chat function with cache 2022-11-29 12:52:19 +08:00
洛水居室
40e3ab0cce
Raise SystemExit exception after core initialization error to shut down the app 2022-11-25 18:02:18 +08:00
洛水居室
84e8d00831
⬆ Update PTB related dependencies and add version check 2022-11-25 15:33:25 +08:00
Karako
6db91e550c
🐛 fix assets service
Signed-off-by: Karako <karakohear@gmail.com>
2022-11-23 22:21:54 +08:00
Karako
ad8a81c373
add method get_link for AssetsService 2022-11-23 21:50:45 +08:00
omg-xtao
d096cd29a5
🐛 Fix material cache error 2022-11-20 13:59:16 +08:00
洛水居室
304eb5e740
🐛 Fix weapon plugin not handling notice correctly in AssetsCouldNotFound exception 2022-11-19 16:08:35 +08:00
洛水居室
8a92016905
🐛 Improve Handling of Get Public Cookies
触发 1034 错误的账号会从 Redis 缓存中移除
2022-11-14 23:26:37 +08:00
acd7e352fd
💚 Fix pytest 2022-11-04 18:07:11 +08:00
omg-xtao
56af09c703
🚚 Change resources repo 2022-11-03 18:33:13 +08:00
omg-xtao
cd2a426365
Support manual pass challenge
*  支持手动通过验证码
2022-10-30 16:46:07 +08:00
Karako
fe9c1261a0
🐛 fix logger config
Signed-off-by: Karako <karakohear@gmail.com>
2022-10-28 15:39:17 +08:00
Karako
f0b287dcfe
🎨 Improve config 2022-10-28 15:11:14 +08:00
Karako
28a3c69892
🎨 改进 logger 2022-10-23 17:15:09 +08:00
洛水居室
291b21f674
🔧 支持使用配置文件是否启用 genshin.py 模块的缓存 2022-10-22 23:52:00 +08:00
洛水居室
465f7c4148
🔧 添加超时配置项 2022-10-22 15:49:20 +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
洛水居室
24c63002cd
🐛 修复未配置错误通知时依然发送日记导致的异常 2022-10-21 19:07:49 +08:00
omg-xtao
e9edf915ff
🐛 修复未知命令不回复
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-10-20 21:04:53 +08:00
omg-xtao
1f17e56824
添加错误平台
Co-authored-by: SiHuan <sihuan@sakuya.love>
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-10-19 20:22:24 +08:00
洛水居室
4a0168d311
🎨 为邀请BOT的条件添加多种选择
为了机器人防止被滥用,或部署的服务器资源不足只能留在部分群使用,或者是私用搭建所写的一个功能
别问为啥懒得写单独认证
懒了.jpg
2022-10-16 18:18:51 +08:00
洛水居室
8cf18e2f95
🎨 Set the specifies the maximum amount of time to wait for a write operation to complete to 10 seconds 2022-10-15 23:51:40 +08:00
omg-xtao
68427d6aa3
🐛 修复部分角色攻略未找到的问题 2022-10-14 21:17:53 +08:00
Karako
1bf34a4dee
enhance logger 2022-10-13 21:01:45 +08:00
Chuangbo Li
ada56a2382
增加用于模板预览和调试的 web server 2022-10-12 21:39:47 +08:00
omg-xtao
77ee577f7a
支持BOT管理员获取用户自动签到信息 2022-10-12 20:11:54 +08:00
Karako
57edccd925
Enhance abyss
Signed-off-by: Karako <karakohear@gmail.com>
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-12 17:34:55 +08:00
omg-xtao
131af7f0c1
🐛 修复对话中 cancel 命令失效 2022-10-11 20:20:11 +08:00
洛水居室
ec8175eea2
🎨 提高代码质量 2022-10-11 14:45:07 +08:00
omg-xtao
4660b34db4
支持通过 Stoken 自动刷新抽卡记录 2022-10-11 12:00:55 +08:00
Chuangbo Li
345edb9fe5
🎨 使用 black 格式化所有代码 2022-10-10 19:07:28 +08:00
omg-xtao
410dad1a03
给签到添加ajax请求或打码平台 2022-10-10 13:34:06 +08:00
b1c6e7456f
️ 为抽卡分析添加缓存 2022-10-10 11:37:58 +08:00
洛水居室
e54e3803f5
🎨 改进对 TooManyRequestPublicCookies 异常处理 2022-10-09 13:45:50 +08:00
5c67e256ca
🐛 修复 TooManyRequestPublicCookies 初始化 2022-10-09 10:43:28 +08:00
9b10e382b0
支持使用 query_selector 限制截图区域 2022-10-08 15:37:30 +08:00
洛水居室
29a5508174
♻ 重写 apihelper 模块 2022-10-08 08:59:08 +08:00
洛水居室
ee7538e32b
🎨 修改日记和局部变量名称 2022-10-07 21:12:20 +08:00
omg-xtao
71628e3557
支持BOT管理员获取用户详细信息 2022-10-07 21:12:20 +08:00
Karako
61b85abcc7
🐛 修复 EnkaNetworkAPI 被污染的问题 2022-10-07 14:40:11 +08:00
洛水居室
0f343a0e3c
🎨 添加 enka_network_api_agent 可选配置项 2022-10-07 13:56:04 +08:00
Karako
4c702515a0
Enhance AssetsService
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-07 13:02:49 +08:00
洛水居室
b1455be303
🐛 修复上游 genshin.py 更新后导致的错误
* 🎨 初始化资源 `update_characters_enka`

* 🍱 替换 GitHub 地址为 FastGit 镜像源

* 🐛 修复上游未解析梦之树等级

Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-06 12:38:02 +08:00
洛水居室
5cd072caa9
🎨 在关闭BOT前关闭 sqlmodel 在内存中的所有会话 2022-09-26 16:53:31 +08:00
Karako
28b3c4dd9a
️ 提升性能
异步并发下载素材
2022-09-21 00:40:36 +08:00
Karako
6f16002faf
🔥 删除无用代码 2022-09-20 23:54:35 +08:00
洛水居室
62dbcafa8c
🎨 改进部分函数异常处理 2022-09-19 23:31:17 +08:00
omg-xtao
b477dc7648
🐛 修复模板复用不正确导致的错误并改进代码避免触发洪水模式
Co-authored-by: Karako <karakohear@gmail.com>
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-09-18 01:33:11 +08:00
Karako
5016f7cb0f
添加查看今日素材表功能 2022-09-18 00:28:51 +08:00