Commit Graph

441 Commits

Author SHA1 Message Date
洛水居室
471ed052ea
Use ChatMemberHandler to Get Chat Member Updates
使用 ChatMemberHandler 获取 chat member updates

解决在部分群开启了隐藏成员列表后Bot无法工作的问题
2023-01-03 17:14:57 +08:00
洛水居室
cea7698644
🎨 Update Help Message 2022-12-30 17:01:54 +08:00
洛水居室
f5ebe19ff1
Add New Authkey Exception for Wish Log 2022-12-28 21:57:40 +08:00
洛水居室
6371db3b5e
Use Redis to Cache EnkaNetwork Data 2022-12-27 21:56:12 +08:00
洛水居室
f5f8735e88
🎨 Better Exception-Handling for AvatarListPlugin.get_final_data 2022-12-27 20:42:56 +08:00
洛水居室
4aa00fc43c
🐛 Fix Incorrect Region 2022-12-27 14:30:48 +08:00
洛水居室
6552606cc7
🎨 Improve code quality 2022-12-25 21:26:08 +08:00
洛水居室
e5ab9d71ca
🐛 Fix Field Does Not Exist
--
reason:
[EnkaNetwork](7a1a1489e5)
2022-12-25 20:51:30 +08:00
洛水居室
a8d1fe19ff
🐛 Fix Account Info Not Completely Remove from Database 2022-12-25 15:56:52 +08:00
洛水居室
0218ac7648
🎨 Use html.escape to Escape Special Characters 2022-12-25 15:50:19 +08:00
洛水居室
5f65dc18a5
🎨 Update Get Cookies Step Description 2022-12-24 14:21:37 +08:00
0ca0739903
🎨 Update ds salt 2022-12-23 23:44:40 +08:00
洛水居室
3de0f8beb5
🎨 Update Handle InvalidCookies Exception 2022-12-23 21:35:26 +08:00
omg-xtao
c927b7b86b
Use qrcode to add cookies only CN users 2022-12-23 21:06:08 +08:00
洛水居室
5b7d26f9ac
🎨 Update Wish Export Log and Text 2022-12-22 23:51:45 +08:00
洛水居室
750c062f28
🎨 Update Reply Text 2022-12-22 23:27:26 +08:00
洛水居室
81e0c6f35d
🎨 Handle InvalidCookies Exception in Ledger 2022-12-22 23:09:28 +08:00
洛水居室
807ae86e8a
🎨 Handle Not Enough Permissions Exception 2022-12-18 22:24:27 +08:00
洛水居室
393ab40459
Flush Cookies Cache on Initialization 2022-12-14 23:34:44 +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
洛水居室
a4d7593ab0
🎨 Filter empty strings in parse cookies 2022-12-11 14:00:12 +08:00
洛水居室
3b26c0b49f
🎨 Modify text 2022-12-10 20:44:04 +08:00
洛水居室
4b976f70d5
♻ Refactor ApiHelper 2022-12-10 20:37:43 +08:00
洛水居室
0ca5f0314e
🎨 Catch ValueError exception in input cookie 2022-12-10 20:24:40 +08:00
洛水居室
343dd826ca
🎨 Improve auto-blocking 2022-12-09 20:53:52 +08:00
Karako
8beb2cf442
🐛 fix cookie parser 2022-12-08 22:22:59 +08:00
Karako
330a7b22e8
🐛 fix AssetsService
🐛 修复 `AssetsService`
2022-12-07 16:40:30 +08:00
洛水居室
7d1c6049fe
🎨 Will not send the original text if the text exceeds the limit 2022-12-07 11:26:18 +08:00
洛水居室
f2b89134cb
🎨 Make GachaHandle.de_item_list Raise GachaDataFound 2022-12-07 11:03:42 +08:00
洛水居室
efc3dedc74
🎨 Update url, run repeat job interval and log in post.py 2022-12-07 10:29:22 +08:00
洛水居室
99f2482caf
🎨 Update error handler for NetworkError and TimedOut exceptions 2022-12-04 20:03:07 +08:00
洛水居室
e20e20111d
Add inline search 2022-12-04 19:56:39 +08:00
洛水居室
63b0e4afff
🎨 Update ch bbs url 2022-12-01 19:58:03 +08:00
Karako
4543377462
🐛 fix cookies
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-12-01 19:54:40 +08:00
洛水居室
7e12832239
🎨 Rename de_cookie to parse_cookie 2022-12-01 18:41:27 +08:00
洛水居室
7a2efd16dd
🎨 Rename AddUserCommandData to SetUserUidCommandData 2022-12-01 18:31:38 +08:00
洛水居室
f2d10273af
🐛 Fix unresolved attribute reference 'hoyolab_uid'
Reason:
hoyolab_uid → hoyolab_id
- [genshin.py](8c71c0d965)
2022-12-01 11:27:10 +08:00
洛水居室
3573c68120
🎨 Update get cookies help message 2022-12-01 11:04:59 +08:00
洛水居室
56c8d66215
🎨 Update Wish Simulator command 2022-12-01 10:33:09 +08:00
洛水居室
80b96d4c51
🎨 Update get_args 2022-12-01 10:27:27 +08:00
洛水居室
272f104166
🐛 Fix cookie can't be deleted 2022-11-30 12:02:52 +08:00
洛水居室
fb03f09b9d
Add delete user command 2022-11-30 11:49:48 +08:00
41b9bac0f2
get_chat support show can_manage_topics 2022-11-29 21:48:10 +08:00
洛水居室
8331698a7c
🎨 Update set cookies command 2022-11-29 21:15:46 +08:00
洛水居室
0e4b1cdc1b
Use Client.get_hoyolab_user to get hoyolab id 2022-11-28 22:46:09 +08:00
洛水居室
a2656d2df7
Use create_deep_linked_url to create url 2022-11-28 16:38:49 +08:00
洛水居室
c090dd97ba
Add simplified processing of cookies 2022-11-27 18:42:49 +08:00
洛水居室
15532234b6
🎨 Update get cookie help message 2022-11-26 16:33:55 +08:00
omg-xtao
09b211d65d
Added code to get the old account_id 2022-11-26 16:31:05 +08:00
洛水居室
6cfe029a8d
🐛 Fix wrong params passed to isinstance 2022-11-25 16:42:09 +08:00
洛水居室
84e8d00831
⬆ Update PTB related dependencies and add version check 2022-11-25 15:33:25 +08:00
洛水居室
da0faf6d98
🎨 Handle NetworkError and TimedOut exceptions separately 2022-11-24 23:02:27 +08:00
洛水居室
4d67904118
🎨 Update help message 2022-11-24 11:48:37 +08:00
洛水居室
57006259f1
🎨 Add get icon exception handling 2022-11-23 23:02:34 +08:00
洛水居室
2de87788b1
🎨 Add character and weapon icons to inline query 2022-11-23 22:56:07 +08:00
洛水居室
c7b0f530f7
🎨 black code 2022-11-23 09:11:29 +08:00
洛水居室
aa890c539f
🎨 Update help message 2022-11-23 08:59:25 +08:00
洛水居室
79b7244981
🎨 Add a way to get cookies in iOS platform 2022-11-23 08:22:27 +08:00
omg-xtao
7457fef7f3
🐛 Fix material character weapon miss 2022-11-22 18:36:52 +08:00
洛水居室
3f2a9b8ee9
🐛 Fix plugin can't upload log 2022-11-21 22:45:27 +08:00
洛水居室
cf2068a1cc
🐛 Fix log plugin import 2022-11-21 22:40:32 +08:00
洛水居室
827b97e36d
🎨 Add filters.ChatType.PRIVATE to Verify Command And Update Log 2022-11-21 20:50:25 +08:00
洛水居室
bda5f4fdd0
🎨 Improve error push 2022-11-21 14:57:12 +08:00
洛水居室
84f0f4d5aa
🐛 Fix ValidationError exception thrown when WebAppData.data is None 2022-11-20 23:38:05 +08:00
洛水居室
c4db39c3df
🎨 Update verification reply text and log 2022-11-20 19:52:36 +08:00
洛水居室
2b83985efd
Add Webapp 2022-11-20 19:32:56 +08:00
洛水居室
e83a9fd8cb
🐛 Fix unable to get genshin account information correctly 2022-11-19 21:41:12 +08:00
洛水居室
ba7c5f2f14
🎨 Make pyrogram Dependencies Optional 2022-11-19 16:59:59 +08:00
洛水居室
a3f3091702
🎨 Update sign-in log 2022-11-19 16:15:30 +08:00
洛水居室
304eb5e740
🐛 Fix weapon plugin not handling notice correctly in AssetsCouldNotFound exception 2022-11-19 16:08:35 +08:00
洛水居室
a10ff3728b
🎨 Pass title to banner if html_title is None 2022-11-18 18:18:01 +08:00
洛水居室
e6de707c67
🐛 Fix old challenge being passed by sign-in 2022-11-18 16:36:52 +08:00
洛水居室
762c9bc907
🐛 Fix plugin not handling notice correctly in InvalidCookies exception 2022-11-17 16:35:00 +08:00
洛水居室
b7d2e1962a
♻ Refactor handling of sign-in verification
重构每日签到的验证码处理
2022-11-17 16:34:59 +08:00
洛水居室
684cba06a3
🎨 Update Verification log and reply text 2022-11-17 16:34:59 +08:00
洛水居室
79272ab330
🐛 Fix abyss not handling TooManyRequestPublicCookies exception correctly 2022-11-17 16:34:59 +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
洛水居室
0bfe99d74f
🎨 Add a few tips 2022-11-14 16:07:07 +08:00
洛水居室
1a83b23084
🐛 Fix cache resolution for verification without challenge
修复缓存调用错误导致验证没存储到缓存的问题
2022-11-13 18:18:55 +08:00
洛水居室
ffbb224644
🎨 Update log output and exception handler in validation 2022-11-13 13:45:01 +08:00
洛水居室
56515a2f9f
🎨 Add error_callable wrapper in start command 2022-11-13 01:56:38 +08:00
洛水居室
9c60087673
🎨 Update User-Agent 2022-11-13 01:47:34 +08:00
洛水居室
80577042da
🐛 Fix challenge is not stored in the cache
修复 challenge 变量没有存储到 redis 缓存问题
2022-11-13 01:47:33 +08:00
洛水居室
9ed30d4143
🎨 Cancel authentication if cookies is None
处理 CookiesNotFoundError 异常
2022-11-12 23:08:25 +08:00
洛水居室
c73685e311
🎨 Update process_validate in start command
修改认证处理,不用发命令即可进入认证过程
2022-11-12 22:23:25 +08:00
洛水居室
12ca9af57b
🎨 Return URL button when chat is private in sign function
私聊时应该返回签到URL按钮而不是callback按钮,避免重复工作
2022-11-12 21:39:17 +08:00
洛水居室
38541428b9
Add verification pass plugin
 添加验证通过插件

Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-11-12 20:59:42 +08:00
15bc2b2724
🔥 Delete Artifact Rate 2022-11-04 17:56:37 +08:00
洛水居室
101cb76503
🐛 Fix exception raised by empty gacha card pool information 2022-11-02 08:39:25 +08:00
9272405151
🐛 Plugin birthday fix a bug
修复每月上旬获取当天信息失败的问题
2022-11-02 00:47:25 +08:00
kotoriのねこ
d937e1e3c6
Send uid to manual pass challenge page
适配新版手动验证界面
2022-11-01 22:33:23 +08:00
c83f1c0afc
🐛Fix some problems 2022-11-01 22:12:18 +08:00
洛水居室
72192351df
🎨 使用 assets 服务获取图片 2022-11-01 22:00:13 +08:00
SiHuan
dea8a4128c
🐛 Fix GenshinException exception and blank return when no cookie is set in daily_material
修复了 client 为 None 时返回空白的信息
修复了未授权使用养成计算器引发的异常导致无法获取信息的问题
2022-11-01 22:00:13 +08:00
洛水居室
11be3f232c
🐛 Fix wrong params passed to start_sign function
修复签到函数传入错误的参数导致异常的问题
2022-10-31 15:45:54 +08:00
洛水居室
15d872ba35
🐛 Fix missing text descriptions
修复部分文本缺失问题
2022-10-30 21:42:13 +08:00
洛水居室
5a64d6a068
♻ Refactor sign system
* ♻ 重写签到系统

Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-30 21:35:53 +08:00
omg-xtao
53f30a8f85
🔒️ Impore sign in group security
* 🔒️ 提高SIGN功能在群组使用的安全性
2022-10-30 19:37:57 +08:00
08f2e636ef
🐛 Fix gen gt 2022-10-30 17:12:14 +08:00
omg-xtao
cd2a426365
Support manual pass challenge
*  支持手动通过验证码
2022-10-30 16:46:07 +08:00
45300d250e
Character birthday query
* 今日角色生日列表查询

Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-30 01:00:13 +08:00
omg-xtao
463670be69
Add gacha_count only_five_star support 2022-10-29 18:29:20 +08:00
洛水居室
d3fb2ef386
🎨 Use random module instead of secrets module 2022-10-29 12:11:26 +08:00
SiHuaN
755c224ca0
🎨 daily_material: optimize get skills level code
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2022-10-29 11:54:07 +08:00
洛水居室
31d71fd6a1
🎨 Skip auto check-in when status is NEED_CHALLENGE 2022-10-29 00:37:27 +08:00
洛水居室
884afa3087
🐛 Fix to get the question id
梅开二度
2022-10-28 23:38:48 +08:00
SiHuaN
6e8f29786e
Add talent levels to daily materials
Co-authored-by: kotoriのねこ <minamiktr@outlook.com>
2022-10-28 23:36:59 +08:00
Karako
f0b287dcfe
🎨 Improve config 2022-10-28 15:11:14 +08:00
洛水居室
be5f4c51d5
🐛 Fix the exception caused by update.message is None 2022-10-28 12:10:30 +08:00
洛水居室
cfae262c0e
🐛 Fix to get the question id 2022-10-28 12:04:10 +08:00
SiHuaN
514d1bf3b0
🔧 avatar_list: optimize retry code 2022-10-28 11:53:59 +08:00
SiHuan
3e4cd1db1c
🐛 fix avatar 2022-10-27 21:16:48 +08:00
洛水居室
20ff3c5cf4
remove numpy
*  remove numpy

* 🗑️ remove `MT19937Random`
2022-10-27 13:15:11 +08:00
Karako
8a4147a4ff
🐛 修复 type hits , 兼容 py3.8
Signed-off-by: Karako <karakohear@gmail.com>
2022-10-23 16:13:48 +08:00
omg-xtao
bf90ca55f9
🎨 优化报错提醒 2022-10-22 21:54:04 +08:00
洛水居室
ddfbcfa5c9
🎨 修改每日素材表插件图片缓存时间 2022-10-22 17:12:39 +08:00
洛水居室
51a066aff9
🎨 修改查询当前状态插件图片缓存时间 2022-10-22 17:04:36 +08:00
洛水居室
f00c4c0f11
🐛 修复 gacha 插件发送错误数据的问题 2022-10-22 17:03:50 +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
洛水居室
f55077e713
🐛 修复文章定时抓取时返回全部文章而不是新文档的问题 2022-10-22 14:35:18 +08:00
Karako
2c671d0dc2
🐛 修改每日素材缓存刷新规则
Signed-off-by: Karako <karakohear@gmail.com>
2022-10-22 11:31:44 +08:00
cf8e725a1f
🐛 修复 gacha_log 无法分析单抽五星的问题 2022-10-22 01:13:10 +08:00
Karako
e524a1b8bb
️ 提升 avatars-list 的性能
并发获取角色详情

Signed-off-by: Karako <karakohear@gmail.com>
2022-10-21 23:52:59 +08:00
洛水居室
7c34167ff4
🐛 修复通知无法发送的问题 2022-10-21 20:31:58 +08:00
洛水居室
ab1c490a13
♻️ 重构 gacha_log
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2022-10-21 19:34:49 +08:00
洛水居室
24c63002cd
🐛 修复未配置错误通知时依然发送日记导致的异常 2022-10-21 19:07:49 +08:00
SiHuan
333994281e
🐛 修复导入 xlsx 时 uid 为 0, 物品类型都为武器的 bug 2022-10-21 16:30:09 +08:00
洛水居室
e6c25aaa98
🎨 优化异常处理 2022-10-21 15:07:41 +08:00
洛水居室
57f0029a42
🎨 优化错误平台模块 2022-10-20 22:21:26 +08:00
SiHuaN
54146a97af
gacha_log 支持导入从 paimon.moe 和非小酋导出的抽卡记录 2022-10-20 15:48:40 +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
洛水居室
8c12237e85
🐛 修复用户邀请识别错误的问题 2022-10-19 19:12:53 +08:00
洛水居室
55f3086c4c
🐛 修复回复消息时 photoNone 引发的错误 2022-10-19 15:15:47 +08:00
洛水居室
ab2c0226b8
🎨 优化每日素材表插件 2022-10-19 14:19:00 +08:00
洛水居室
39354444a2
🎨 修改签到随机睡眠时间范围 2022-10-19 13:36:10 +08:00
洛水居室
aafcb424a9
🎨 设置 avatar_list 函数为非堵塞调用 2022-10-18 14:47:40 +08:00
洛水居室
f86c8baff3
🎨 设置抽卡模拟器武器定轨为2
应该为2才才对
2022-10-17 22:35:44 +08:00
洛水居室
0c51dd3c5d
🎨inline_query 函数添加 error_callable 修饰器 2022-10-17 18:21:04 +08:00
洛水居室
0120984991
🎨send_log 命令添加 reply_chat_action 2022-10-17 18:11:57 +08:00
omg-xtao
adec83108a
🐛 avatar 修复错误 2022-10-17 14:27:37 +08:00
Karako
cfbbfe91fb
🐛 修复未向养成计算器授权时出现的错误
🐛 修复读取名片时错误

Signed-off-by: Karako <karakohear@gmail.com>
2022-10-16 22:00:28 +08:00
Karako
cf7012bed0
🐛 当解析旅行者数据错误时、跳过旅行者
Signed-off-by: Karako <karakohear@gmail.com>
2022-10-16 20:57:35 +08:00
3b1a46837d
🐛 练度统计对旅行者特殊判断 2022-10-16 19:39:42 +08:00
洛水居室
4a0168d311
🎨 为邀请BOT的条件添加多种选择
为了机器人防止被滥用,或部署的服务器资源不足只能留在部分群使用,或者是私用搭建所写的一个功能
别问为啥懒得写单独认证
懒了.jpg
2022-10-16 18:18:51 +08:00
Karako
b27f8af9a4
角色练度查询 2022-10-16 18:11:04 +08:00
Karako
4eace26e77
🐛 修复 type hit
Signed-off-by: Karako <karakohear@gmail.com>
2022-10-16 12:13:15 +08:00
洛水居室
37d453e439
🐛 修复全部重签成功后数据库的签到状态未修改的问题 2022-10-16 00:19:22 +08:00
洛水居室
9f2fc56ea5
🎨 全部重签添加随机延迟 2022-10-16 00:11:46 +08:00
洛水居室
247606fbb9
🐛 修复常驻卡池无法解析的问题 2022-10-16 00:01:37 +08:00