diff --git a/Guess_voice/handler.py b/Guess_voice/handler.py index 574a6a7..5c74a43 100644 --- a/Guess_voice/handler.py +++ b/Guess_voice/handler.py @@ -66,7 +66,7 @@ def create_guess_matcher(role_name, second, group_id): re_str = '|'.join(alias_list) guess_matcher = on_regex(re_str, temp=True, rule=Rule(check_group)) 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() async def _(event: GroupMessageEvent): diff --git a/utils/aiorequests.py b/utils/aiorequests.py index 1698d95..9b30e08 100644 --- a/utils/aiorequests.py +++ b/utils/aiorequests.py @@ -1,4 +1,3 @@ -import traceback from io import BytesIO from pathlib import Path from ssl import SSLCertVerificationError