File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ class Fun(commands.Cog):
6363
6464 def __init__ (self , bot : commands .Bot ):
6565 self .bot = bot
66- self .question_index = 0
6766 self ._absolute_template_cache_bytes : Optional [bytes ] = None
6867 self ._absolute_template_cache_expires_at = 0.0
6968 self ._absolute_template_cache_lock = asyncio .Lock ()
@@ -154,17 +153,6 @@ def _build_absolute_gif(
154153 result .seek (0 )
155154 return result
156155
157- def get_next_question (self ) -> dict [str , str ]:
158-
159- if self .question_index >= len (TRIVIA_QUESTIONS ):
160- random .shuffle (TRIVIA_QUESTIONS )
161- self .question_index = 0
162-
163- question = TRIVIA_QUESTIONS [self .question_index ]
164- self .question_index += 1
165-
166- return question
167-
168156 async def _get_absolute_template_bytes (self ) -> bytes :
169157 now = time .monotonic ()
170158 if (
You can’t perform that action at this time.
0 commit comments