mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
修复原神猜语音
datetime问题
This commit is contained in:
parent
30d32cdc84
commit
addb044064
@ -66,7 +66,7 @@ def create_guess_matcher(role_name, second, group_id):
|
|||||||
re_str = '|'.join(alias_list)
|
re_str = '|'.join(alias_list)
|
||||||
guess_matcher = on_regex(re_str, temp=True, rule=Rule(check_group))
|
guess_matcher = on_regex(re_str, temp=True, rule=Rule(check_group))
|
||||||
guess_matcher.plugin_name = "Guess_voice"
|
guess_matcher.plugin_name = "Guess_voice"
|
||||||
guess_matcher.expire_time = datetime.timedelta(seconds=second)
|
guess_matcher.expire_time = datetime.datetime.now() + datetime.timedelta(seconds=second)
|
||||||
|
|
||||||
@guess_matcher.handle()
|
@guess_matcher.handle()
|
||||||
async def _(event: GroupMessageEvent):
|
async def _(event: GroupMessageEvent):
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import traceback
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from ssl import SSLCertVerificationError
|
from ssl import SSLCertVerificationError
|
||||||
|
Loading…
Reference in New Issue
Block a user