From 5782035a6f9a1212a7c029edad6edf287ebaf48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Wed, 31 Aug 2022 16:29:18 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20`quiz`=20?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E4=BE=9D=E8=B5=96=E7=9A=84=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E4=B8=BA=20`None`=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/quiz.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/genshin/quiz.py b/plugins/genshin/quiz.py index 3f871ccf..88cf6778 100644 --- a/plugins/genshin/quiz.py +++ b/plugins/genshin/quiz.py @@ -17,6 +17,7 @@ from plugins.base import BasePlugins from utils.decorators.restricts import restricts from utils.plugins.manager import listener_plugins_class from utils.random import MT19937_Random +from utils.service.inject import inject class QuizCommandData: @@ -37,6 +38,7 @@ class QuizPlugin(BasePlugins): GET_NEW_QUESTION, GET_NEW_CORRECT_ANSWER, GET_NEW_WRONG_ANSWER, \ QUESTION_EDIT, SAVE_QUESTION = range(10300, 10308) + @inject def __init__(self, quiz_service: QuizService = None, bot_admin_service: BotAdminService = None): self.bot_admin_service = bot_admin_service self.user_time = {}