Remove old command for remaining KAOS
This commit is contained in:
parent
1297a9def0
commit
8a90d9c406
|
|
@ -46,11 +46,6 @@ conf.registerChannelValue(TriviaTime.commands, 'extraHint',
|
|||
"""The command to show alternative hints""")
|
||||
)
|
||||
|
||||
conf.registerChannelValue(TriviaTime.commands, 'showHintCommandKAOS',
|
||||
registry.NormalizedString(""",""",
|
||||
"""The command for showing the remaining KAOS""")
|
||||
)
|
||||
|
||||
conf.registerChannelValue(TriviaTime.general, 'logGames',
|
||||
registry.Boolean(True,
|
||||
"""Log changes to questions and games""")
|
||||
|
|
|
|||
|
|
@ -142,21 +142,16 @@ class TriviaTime(callbacks.Plugin):
|
|||
return
|
||||
channelCanonical = ircutils.toLower(channel)
|
||||
|
||||
kaosRemainingCommand= self.registryValue('commands.showHintCommandKAOS', channel)
|
||||
otherHintCommand = self.registryValue('commands.extraHint', channel)
|
||||
|
||||
game = self.getGame(irc, channel)
|
||||
|
||||
if game is not None:
|
||||
# Look for command to list remaining KAOS
|
||||
if msg.args[1] == kaosRemainingCommand and game.question.find("KAOS:") == 0:
|
||||
irc.sendMsg(ircmsgs.notice(msg.nick, "'{0}' now also works for KAOS hints, check it out!".format(otherHintCommand)))
|
||||
if msg.args[1] == otherHintCommand and game.question.find("KAOS:") == 0:
|
||||
game.getRemainingKAOS()
|
||||
elif msg.args[1] == otherHintCommand:
|
||||
if game.question.find("KAOS:") == 0:
|
||||
game.getRemainingKAOS()
|
||||
else:
|
||||
game.getOtherHint()
|
||||
game.getOtherHint()
|
||||
else:
|
||||
# check the answer
|
||||
game.checkAnswer(msg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue