mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-30 07:21:16 -05:00
Update plugin.py (#37)
* Update plugin.py Removed unneeded extra spaces on hints for regular trivia questions * Update plugin.py Remove unneeded space before the question
This commit is contained in:
parent
4efd5977b8
commit
6f90754be9
@ -445,7 +445,7 @@ class Game:
|
|||||||
def getExtraHintString(self):
|
def getExtraHintString(self):
|
||||||
charMask = self.registryValue("hints.charMask", self.channel)
|
charMask = self.registryValue("hints.charMask", self.channel)
|
||||||
ans = self.answers[0]
|
ans = self.answers[0]
|
||||||
hints = " Extra Hint: \x02\x0312"
|
hints = "Extra Hint: \x02\x0312"
|
||||||
divider = 0
|
divider = 0
|
||||||
|
|
||||||
if len(ans) < 2:
|
if len(ans) < 2:
|
||||||
@ -555,7 +555,7 @@ class Game:
|
|||||||
hints = self.getHintString(self.hintsCounter)
|
hints = self.getHintString(self.hintsCounter)
|
||||||
self.hintsCounter += 1 # increment hints counter
|
self.hintsCounter += 1 # increment hints counter
|
||||||
self.shownHint = False # reset hint shown
|
self.shownHint = False # reset hint shown
|
||||||
self.sendMessage(" Hint %s: \x02\x0312%s" % (self.hintsCounter, hints), 1, 9)
|
self.sendMessage("Hint %s: \x02\x0312%s" % (self.hintsCounter, hints), 1, 9)
|
||||||
|
|
||||||
def nextQuestion(self):
|
def nextQuestion(self):
|
||||||
"""
|
"""
|
||||||
@ -760,7 +760,7 @@ class Game:
|
|||||||
if self.questionType == "kaos":
|
if self.questionType == "kaos":
|
||||||
questionText += " %d possible answers" % (len(self.answers))
|
questionText += " %d possible answers" % (len(self.answers))
|
||||||
|
|
||||||
questionMessageString = " %s: %s" % (self.numAsked, questionText)
|
questionMessageString = "%s: %s" % (self.numAsked, questionText)
|
||||||
maxLength = 400
|
maxLength = 400
|
||||||
questionMesagePieces = [
|
questionMesagePieces = [
|
||||||
questionMessageString[i : i + maxLength]
|
questionMessageString[i : i + maxLength]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user