parent
593148f4d3
commit
b9aa665364
|
|
@ -49,7 +49,7 @@ class TimeoutList:
|
|||
return True
|
||||
return False
|
||||
|
||||
def getTimeLeft(self, getTimeLeft):
|
||||
def getTimeLeft(self, value):
|
||||
return self.timeout - (time.time() - self.dict[value])
|
||||
|
||||
class TriviaTime(callbacks.Plugin):
|
||||
|
|
@ -1106,7 +1106,7 @@ class TriviaTime(callbacks.Plugin):
|
|||
skipSeconds = self.registryValue('skip.skipTime', channel)
|
||||
game.skips.setTimeout(skipSeconds)
|
||||
if game.skips.has(usernameCanonical):
|
||||
self.reply(irc, msg, 'You must wait %s seconds to be able to skip again.' % (game.skips.getTimeLeft(usernameCanonical)))
|
||||
self.reply(irc, msg, 'You must wait %d seconds to be able to skip again.' % (game.skips.getTimeLeft(usernameCanonical)))
|
||||
return
|
||||
|
||||
# Update skip count
|
||||
|
|
|
|||
Loading…
Reference in New Issue