summary refs log tree commit diff stats
path: root/components
diff options
context:
space:
mode:
authorsuhas <hi@suhas.one>2023-11-19 15:19:37 -0600
committersuhas <hi@suhas.one>2023-11-19 15:19:37 -0600
commit3360344b64b781930e81770bc3b40bba502fe907 (patch)
tree126a6dd9bd8d415ec98f9642731bd79196fcfb69 /components
parentf39cec9a0773ac41d2c229715175a3bfab65e3d2 (diff)
downloadqbb-3360344b64b781930e81770bc3b40bba502fe907.tar.gz
remove weird answer thing
Diffstat (limited to 'components')
-rw-r--r--components/AnswerModal.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/components/AnswerModal.py b/components/AnswerModal.py
index f53a344..154c5ad 100644
--- a/components/AnswerModal.py
+++ b/components/AnswerModal.py
@@ -15,7 +15,6 @@ class Answer(Modal, title="Submit Answer"):
     def __init__(self, correct_answer: str, view: TossupButtons) -> None:
         self.correct_answer = correct_answer
         self.view = view
-        self.stop_working = False
         super().__init__()
 
     answer = TextInput(label="Answer", placeholder="Your answer here")
@@ -34,8 +33,6 @@ class Answer(Modal, title="Submit Answer"):
         await db.connect()
 
         if answer_check_data["directive"] == "accept":
-            if self.stop_working:
-                return await interaction.response.send_message('Someone has already answered this correctly!', ephemeral=True)
             if interaction.message is None:
                 return 
             e = interaction.message.embeds[0]
@@ -49,7 +46,6 @@ class Answer(Modal, title="Submit Answer"):
             for item in items:
                 if isinstance(item, Button):
                     item.disabled = True
-            self.stop_working = True
             await interaction.response.edit_message(embed=e, view=self.view)
             await db.user.upsert(where={'id': interaction.user.id}, data={
                 'create': {'questions_correct': 1, 'id': interaction.user.id, 'questions_incorrect': 0},