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:
PeGaSuS 2021-08-15 07:31:01 +02:00 committed by GitHub
parent 4efd5977b8
commit 6f90754be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,7 +445,7 @@ class Game:
def getExtraHintString(self):
charMask = self.registryValue("hints.charMask", self.channel)
ans = self.answers[0]
hints = " Extra Hint: \x02\x0312"
hints = "Extra Hint: \x02\x0312"
divider = 0
if len(ans) < 2:
@ -555,7 +555,7 @@ class Game:
hints = self.getHintString(self.hintsCounter)
self.hintsCounter += 1 # increment hints counter
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):
"""
@ -760,7 +760,7 @@ class Game:
if self.questionType == "kaos":
questionText += " %d possible answers" % (len(self.answers))
questionMessageString = " %s: %s" % (self.numAsked, questionText)
questionMessageString = "%s: %s" % (self.numAsked, questionText)
maxLength = 400
questionMesagePieces = [
questionMessageString[i : i + maxLength]