Commit Graph

657 Commits

Author SHA1 Message Date
洛水居室
b129a791df
🎨 Refactor chat verification
- Changed `config.verify_groups` to a `Set[int]` type for optimized lookup.
- Used set membership checking instead of looping through `config.verify_groups` for verifying chats.

This results in cleaner code and potentially faster chat verification.
2023-10-08 14:58:25 +08:00
洛水居室
54d19baac9
🎨 Update NEW_CHAT_MEMBERS message handler 2023-10-08 14:03:28 +08:00
4808b37c63
🐛 Fix setcookie UnicodeEncodeError 2023-10-07 23:33:44 +08:00
omg-xtao
b52e532343
♻️ Refactor get fight prop rule 2023-10-07 23:33:16 +08:00
omg-xtao
92ee6da37a
🐛 Fix setcookies IntegrityError 2023-10-02 17:51:03 +08:00
a778f78c8a
🎨 ask set cookies when public request failed 2023-10-01 20:37:19 +08:00
6f09d52ec5
🐛 Fix ajax failure does not reapply 2023-09-30 22:29:24 +08:00
78b1b1ba15
🐛 Fix redeem cooldown error 2023-09-30 15:28:00 +08:00
omg-xtao
9cde25fc58
🐛 Fix post cut text and photo error 2023-09-30 10:49:04 +08:00
洛水居室
16c28db1cc
🎨 Update NEW_CHAT_MEMBERS message handler 2023-09-26 18:53:12 +08:00
203c7ac5df
🐛 Fix stoken is invaild 2023-09-25 20:46:08 +08:00
omg-xtao
f7f1bd1a62
Support hoyolab redeem code 2023-09-15 23:56:22 +08:00
洛水居室
c2bcd0bf19
🎨 Delete NEW_CHAT_MEMBERS message during group captcha 2023-09-13 12:18:22 +08:00
洛水居室
aef1cb4c02
🎨 Update Wish Log Error Handler 2023-09-13 08:25:19 +08:00
洛水居室
7580265bff
🎨 Mask UID in update_player_card 2023-09-13 08:12:51 +08:00
omg-xtao
382e64e606
Support get gacha log url 2023-09-12 22:58:08 +08:00
luoshuijs
4b1a2128ab
🐛 Fix Missing Parameters
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2023-09-11 21:24:05 +08:00
洛水居室
c6799187dd
🎨 Improve Cookies Status Update Handler 2023-09-10 02:08:11 +08:00
洛水居室
8b4274482c
🎨 Improve log 2023-09-10 01:53:50 +08:00
luoshuijs
b208e31503
🎨 Add cookies status update 2023-09-09 23:56:53 +08:00
洛水居室
3ae7157b73
🐛 Fix ChatPermissions changes 2023-09-09 23:38:31 +08:00
7c56d688b2
🐛 Fix telegram api 6.8 changes 2023-09-09 23:03:35 +08:00
omg-xtao
16a718129b
Add job - daily_refresh_cookies 2023-09-09 22:10:58 +08:00
洛水居室
2bed5f8743
🐛 Fix overseas account birthday card causing cookie refresh issue
Fixed an issue where obtaining birthday cards with overseas accounts caused abnormal Cookies refresh.
2023-09-07 23:17:23 +08:00
luoshuijs
f1de1c987d
🎨 Fix Some Issues Identified
🎨 Improve f-string used without any expression

🎨 Remove unnecessary else / elif used after return
2023-09-06 15:27:03 +08:00
luoshuijs
f401725ab0
🔥 Remove aiohttp 2023-09-06 11:21:54 +08:00
luoshuijs
1f73588e28
Replace aiohttp with httpx in enkanetwork.py 2023-09-06 11:12:46 +08:00
631dea7700
🐛 Fix wish and pay log PlayerNotFoundError 2023-09-01 10:04:39 +08:00
f7e9412125
🎨 Extend gacha log photo width 2023-08-29 15:20:02 +08:00
洛水居室
d945b91a9d
🐛 Fix the missing account_id field when setting the Cookies 2023-08-28 20:23:18 +08:00
dbffd308e6
Support UIGF v2.3 2023-08-27 15:14:05 +08:00
luoshuijs
468ed22a26
Mask sensitive information in player id 2023-08-26 18:19:00 +08:00
洛水居室
54b8ee65f7
🐛 Fix client unable to get player stats data
Previously, the client couldn't retrieve the latest player stats from the `client.get_genshin_user()` function without first browsing the application. It was necessary to call `client.get_record_cards()` to trigger a refresh.
2023-08-22 10:20:11 +08:00
omg-xtao
5e18290f9a
Handle All PlayerNotFoundError, CookiesNotFoundError 2023-08-21 22:42:44 +08:00
e2095edf81
🐛 Fix auto refresh cookies 2023-08-21 21:28:48 +08:00
luoshuijs
eb3752923e
🎨 Refactor download_icon for improved readability and efficiency 2023-08-21 17:17:15 +08:00
洛水居室
7d9ddfc0e8
🐛 Fix unexpected value 2023-08-21 16:35:01 +08:00
洛水居室
3b1460a177
🎨 Update Material Domain Data 2023-08-21 12:39:38 +08:00
洛水居室
c6e4ca4f30
🎨 Update TimeoutException Log 2023-08-21 12:06:27 +08:00
洛水居室
5e814d5a68
Add hydroculi to genshin stats 2023-08-21 10:05:08 +08:00
luoshuijs
5c26a65c58
🐛 Fix incorrect matching with commands containing @
Resolved the issue where commands with an '@' symbol, such as "/abyss@MasterBot", were not being matched correctly due to the regular expression pattern. The pattern has been updated to handle such cases.
2023-08-20 20:43:58 +08:00
2cc1d98a2d
🐛 Fix stoken v2 do not save mid 2023-08-16 23:00:44 +08:00
omg-xtao
6aac339b20
qlogin support get full token 2023-08-09 13:08:56 +08:00
e4b138bc57
🐛 Fix task job raise StaleDataError 2023-08-04 09:56:34 +08:00
af2e9bdb9b
🐛 Fix abyss floor IndexError 2023-08-02 15:18:11 +08:00
洛水居室
6916b4fa2d
🐛 Fixed update_player_card callback_data format issue 2023-07-29 01:00:52 +08:00
fed5eb3cd2
🐛 Fix daily note task status update 2023-07-28 09:36:52 +08:00
omg-xtao
9408102a82
🐛 Fix daily note task timeout 2023-07-24 20:27:49 +08:00
omg-xtao
3977680cc2
🐛 Fix daily note task region type error 2023-07-24 00:43:57 +08:00
32a5a51e05
📝 Update setcookie help message 2023-07-24 00:24:32 +08:00
omg-xtao
29efa649a3
support task services 2023-07-23 23:46:11 +08:00
luoshuijs
286bc48837
🔥 Remove the image replacement of the Abyss plugin 2023-07-21 11:39:15 +08:00
洛水居室
5261c7534c
🐛 Fix client unable to get CharacterRanks data
Previously, the client could not retrieve `CharacterRanks` data from the `client.get_spiral_abyss()` function if the app was not browsed first.
2023-07-20 12:14:30 +08:00
洛水居室
aa9ddfc267
🎨 Use simnet.Cookies to parse cookies 2023-07-20 12:08:07 +08:00
omg-xtao
e9992969fa
🐛 Fix region class error 2023-07-19 20:28:19 +08:00
omg-xtao
d3dfc06d5c
🐛 Fix gacha_log pay_log get user 2023-07-19 11:41:40 +08:00
luoshuijs
dcf8bd5929
Attempt to refresh after the Cookie expires 2023-07-19 11:37:30 +08:00
洛水居室
42e0b8b8db
🎨 Update process_genshin_exception 2023-07-19 10:55:52 +08:00
洛水居室
1c1157da46
🐛 Fix region 2023-07-19 09:59:16 +08:00
omg-xtao
4f686f5284
🐛 Fix setcookie do not save ltuid
Co-authored-by: 洛水居室 <luoshuijs@outlook.com>
2023-07-18 23:35:37 +08:00
luoshuijs
c1012d206b
Use SIMNet and Remove genshin.py
Co-authored-by: xtaodada <xtao@xtaolink.cn>
2023-07-18 17:29:31 +08:00
23f08f5639
🐛 Fix pay_log gen error authkey 2023-07-17 15:55:35 +08:00
洛水居室
ec05851746
🐛 Fix check for EnkaNetworkResponse.characters 2023-07-10 00:42:36 +08:00
洛水居室
17c66e2142
🐛 Fix check for EnkaNetworkResponse.characters 2023-07-08 14:02:49 +08:00
omg-xtao
a36aeef9c3
Support custom device 2023-06-19 11:41:22 +08:00
d0cf14e4b0
🐛 Fix conversation admin check handle 2023-06-14 18:59:04 +08:00
LittleMengBot
725ab1806c
🐛 fix /material rarity icon 2023-06-13 20:51:05 +08:00
LittleMengBot
4b26982b3a
🐛 fix /weapon type icon 2023-06-07 23:33:11 +08:00
洛水居室
ceaf0a1b09
🐛 Fixed the issue where some commands did not run in a non-blocking manner 2023-06-06 17:03:08 +08:00
28164f52c1
🐛 Fix ajax failure does not reapply 2023-06-04 21:51:32 +08:00
omg-xtao
d7bef825c2
🐛 Fix device too dynamic 2023-06-03 21:48:06 +08:00
560b3c1967
🐛 Fix webapp invalid url 2023-06-03 12:20:18 +08:00
d87ed36eb3
🐛 Fix post text 2023-05-23 19:29:02 +08:00
c86e24ac16
🐛 Fix webapp invalid url 2023-05-16 23:22:06 +08:00
omg-xtao
9b5375c5cd
️ Post always create new client 2023-05-14 22:42:42 +08:00
omg-xtao
04d0f3cf31
🐛 Fix Some Bugs 2023-05-14 18:02:28 +08:00
洛水居室
f3fe7139f7
🐛 Fix bug 2023-05-10 17:30:28 +08:00
洛水居室
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
Karako
4e6b16d2ae
🐛 Fix avatar_list
Signed-off-by: Karako <karakohear@gmail.com>
2023-05-04 22:27:49 +08:00
Karako
ff0f20618b
🐛 Fix avatar_list command matching
Signed-off-by: Karako <karakohear@gmail.com>
2023-05-04 22:22:40 +08:00
Karako
c83406e996
🐛 Fix avatar_list command matching issue
Signed-off-by: Karako <karakohear@gmail.com>
2023-05-04 22:10:28 +08:00
洛水居室
007ef28d0b
🐛 Fix KeyError caused by improper parameter type for character star level retrieval 2023-04-28 14:51:31 +08:00
洛水居室
3ec8b96c02
🐛 Fix the issue of name_card being replaced when it is not None 2023-04-28 14:42:19 +08:00
洛水居室
9e23c1d20d
🐛 Fix the KeyError exception caused by the character rarity not found 2023-04-28 14:34:54 +08:00
洛水居室
ca37f6948a
Add get_name_card function 2023-04-28 13:22:57 +08:00
洛水居室
85178d34ae
🎨 Update get_final_data 2023-04-28 09:29:16 +08:00
洛水居室
fa1e84bea9
Support name card 2023-04-28 09:19:20 +08:00
omg-xtao
0a63b8250d
🐛 Fix sign referer AttributeError 2023-04-26 00:11:25 +08:00
Karako
6efddb364a
🐛 Fix honey impact data parse error
Signed-off-by: Karako <karakohear@gmail.com>
2023-04-25 22:35:58 +08:00
ac879cc353
🐛 Fix honey wiki data parse 2023-04-25 19:52:16 +08:00
omg-xtao
30ea0b99cb
🚚 Isolated recognize method 2023-04-22 21:14:31 +08:00
洛水居室
0566769ee1
🎨 Improve the ffmpeg return status judgment and automatic jump to video width and height
* 🎨 Use `return_code` to determine whether ffmpeg has executed successfully

* 🎨 Automatically adjust the width and height of a video using the scale filter from ffmpeg
2023-04-14 20:51:39 +08:00
洛水居室
47a1c33abe
🐛 Fix file not found error 2023-04-14 13:13:20 +08:00
洛水居室
3fd01d5d80
Use ffmpeg to convert GIF to MP4 2023-04-14 11:53:15 +08:00
洛水居室
f991c8b5fd
🐛 Fix the Forbidden exception caused by the failure to send a message successfully 2023-04-11 09:47:14 +08:00
洛水居室
d386a47ac7
🐛 Fix TypeError exception caused by message is None 2023-04-11 09:45:06 +08:00
omg-xtao
def32d89b9
🐛 Fix post cannot get text 2023-04-10 22:13:29 +08:00
LittleMengBot
7c3d198c7f
Update /weapon result, add some weapon's alias 2023-04-07 21:07:59 +08:00
洛水居室
387558bdaf
Update the expiration detection mechanism for public cookies and add status feedback 2023-04-04 23:46:04 +08:00
洛水居室
46176ad875
🐛 Fix issue of incorrect parameters being passed when calling add_delete_message_job 2023-04-04 22:53:37 +08:00
洛水居室
499efa778f
🎨 Update Logo 2023-04-04 22:26:43 +08:00
LittleMengBot
5f33c5fc3a
Add HTML rendering for /material 2023-04-04 22:02:14 +08:00
洛水居室
5799db53e3
🐛 Handling AccountNotFound exception caused by the uid not found 2023-03-29 16:35:24 +08:00
洛水居室
b40a478ca7
🐛 Fix incorrect type after updating cookies 2023-03-28 22:34:10 +08:00
洛水居室
970bb42555
🔥 Remove get_record_cards 2023-03-27 10:59:39 +08:00
洛水居室
a06eb61b49
🎨 Improve code quality 2023-03-27 10:55:12 +08:00
洛水居室
db2741b515
🐛 Fix ValueError caused by incorrect player ID 2023-03-27 09:56:27 +08:00
洛水居室
f03f524a47
Support cookies refresh and export 2023-03-27 09:44:22 +08:00
洛水居室
16af8d965b
Use cache dual write strategy for class CharacterDetails 2023-03-26 16:57:45 +08:00
洛水居室
139c6758ae
🐛 Fix issue of incorrect parameters being passed when calling add_delete_message_job 2023-03-26 16:12:11 +08:00
洛水居室
444d3e2bdc
Support SQLite 2023-03-25 11:17:38 +08:00
洛水居室
d429553488
🎨 Update Log 2023-03-22 21:16:22 +08:00
洛水居室
8814979cef
🎨 Update timeout config of Hyperion client 2023-03-22 13:09:24 +08:00
洛水居室
9a1b9271e7
🐛 Fix parse content url and gif support
Fixed the problem of [233e7ab](233e7ab58d) and [73d204d](73d204d497) modifications being overwritten due to the submission of [c260165](c26016561a)
2023-03-22 13:06:05 +08:00
洛水居室
a2c2087162
🐛 Fix TypeError exception caused by data is None 2023-03-18 22:15:07 +08:00
洛水居室
1f1734ca03
🐛 Fix TypeError exception caused by characters is None 2023-03-18 22:03:56 +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
洛水居室
b60094eef0
🎨 Update exception notifications 2023-03-17 12:06:58 +08:00
洛水居室
ff84757ed3
🐛 Fix the issue of regular expression not matching uppercase characters 2023-03-17 09:19:11 +08:00
洛水居室
51c01268fa
🐛 Fix Exception Handler 2023-03-17 08:31:31 +08:00
洛水居室
27e1b16ef4
🐛 Fix no default account ID provided 2023-03-17 08:31:22 +08:00
洛水居室
e025a3a656
🐛 Fix PlayerInfo is not persisted 2023-03-17 00:23:31 +08:00
洛水居室
63c75307e3
🎨 Update Exception Handler 2023-03-16 23:18:39 +08:00
洛水居室
4d4aa30069
🎨 Update Callback Query Handler 2023-03-16 23:00:04 +08:00
洛水居室
70fde1ac9b
🎨 Optimize Group Captcha 2023-03-16 18:58:22 +08:00
LittleMengBot
c25184f3de
🎨 Optimize /gacha_log long image send method 2023-03-16 15:47:24 +08:00
洛水居室
6d540b9c66
🎨 Optimize auto-sign login 2023-03-16 11:25:10 +08:00
洛水居室
c19eb4679a
🐛 Fix the issue of incorrect account_id retrieval 2023-03-16 11:03:24 +08:00
洛水居室
df1c00a0dd
🐛 Remove unexpected end tag 2023-03-15 23:51:12 +08:00
洛水居室
c07e9cf097
🐛 Fix the issue of still getting incorrect cookies when account_id is None 2023-03-15 21:35:46 +08:00
洛水居室
3dbb0e74a0
🎨 Set the running mode to non-blocking 2023-03-15 20:41:41 +08:00
洛水居室
6435dabf39
🎨 Improve AccountCookies Plugin 2023-03-15 20:36:57 +08:00
洛水居室
4e87424766
Add binding by player ID 2023-03-15 20:32:36 +08:00
洛水居室
e2649f63ee
🐛 Fix the issue of duplicate data being written to the database 2023-03-15 16:55:46 +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
洛水居室
1525d7cafd
🐛 Fix the exception caused by player or cookie not found 2023-03-15 16:06:36 +08:00
洛水居室
5ecdfc3c09
🐛 Fix the issue of incorrect parameter passing 2023-03-15 12:34:46 +08:00
洛水居室
f1e56c0318
🐛 Fix the exception caused by not handling the non-existent player 2023-03-15 12:27:53 +08:00
洛水居室
4cd8eda043
🎨 Delete the login_ticket after use 2023-03-14 22:03:33 +08:00
洛水居室
622313e15b
🐛 Fix WishLogPlugin has no attribute get_genshin_client 2023-03-14 19:54:57 +08:00
洛水居室
a1a0c6913c
🐛 Fix the issue where the owner cannot be retrieved 2023-03-14 18:19:29 +08:00
洛水居室
c0fbabaf14
🐛 Fix BindAccountPlugin has no attribute player_info_service 2023-03-14 16:23:14 +08:00
洛水居室
221dffef1b
🎨 Modify the text of the reply 2023-03-14 16:19:41 +08:00
洛水居室
3f20430b70
🐛 Fix the exception raised when player_info is None 2023-03-14 16:19:41 +08:00
洛水居室
913e566f5e
🐛 Fix the incorrect parameter passing 2023-03-14 16:19:41 +08:00
洛水居室
bd11e7d831
♻️ Refactor WikiPlugin 2023-03-14 14:09:18 +08:00
洛水居室
7b62d86f46
🎨 Add to schedule for deletion after sending exception information 2023-03-14 13:53:05 +08:00
洛水居室
06ff5d9bcd
🐛 Fix issue where players could not be found 2023-03-14 13:43:02 +08:00
洛水居室
df8d36da3c
🐛 Fix account ID being 0 2023-03-14 12:43:23 +08:00