修复原神猜语音datetime问题

This commit is contained in:
CMHopeSunshine 2022-06-29 10:55:32 +08:00
parent 30d32cdc84
commit addb044064
2 changed files with 1 additions and 2 deletions

View File

@ -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):

View File

@ -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