mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-05-02 00:11:08 -05:00
Jeopardy: handle no questions available
This commit is contained in:
parent
4ff3e4cf5a
commit
93d260bc94
@ -270,6 +270,10 @@ class Jeopardy(callbacks.Plugin):
|
|||||||
self.questions = self.questions[::-1]
|
self.questions = self.questions[::-1]
|
||||||
self.total = len(self.questions)
|
self.total = len(self.questions)
|
||||||
self.num = len(self.questions)
|
self.num = len(self.questions)
|
||||||
|
if self.num == 0:
|
||||||
|
self.reply("Sorry, no questions available.")
|
||||||
|
self.stop()
|
||||||
|
return
|
||||||
self.newquestion()
|
self.newquestion()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user