mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Actually wrap crossword so that it's an available command. Include game.guess
in the initial reply when starting a hangman game.
This commit is contained in:
parent
d9e4838410
commit
b697661a56
@ -143,6 +143,7 @@ class Words(callbacks.Privmsg):
|
|||||||
'sorted order) to be at %s. Contact the owner of this '
|
'sorted order) to be at %s. Contact the owner of this '
|
||||||
'bot to remedy this situation.' %
|
'bot to remedy this situation.' %
|
||||||
self.registryValue('file'))
|
self.registryValue('file'))
|
||||||
|
|
||||||
def crossword(self, irc, msg, args, word):
|
def crossword(self, irc, msg, args, word):
|
||||||
"""<word>
|
"""<word>
|
||||||
|
|
||||||
@ -177,6 +178,7 @@ class Words(callbacks.Privmsg):
|
|||||||
irc.reply(utils.commaAndify(words))
|
irc.reply(utils.commaAndify(words))
|
||||||
else:
|
else:
|
||||||
irc.reply('No matching words were found.')
|
irc.reply('No matching words were found.')
|
||||||
|
crossword = wrap(crossword, ['something'])
|
||||||
|
|
||||||
###
|
###
|
||||||
# HANGMAN
|
# HANGMAN
|
||||||
@ -243,8 +245,9 @@ class Words(callbacks.Privmsg):
|
|||||||
game.hidden)
|
game.hidden)
|
||||||
self._hangmanReply(irc, channel,
|
self._hangmanReply(irc, channel,
|
||||||
'Okay ladies and gentlemen, you have '
|
'Okay ladies and gentlemen, you have '
|
||||||
'a %s-letter word to find, you have %s!' %
|
'a %s-letter word (%s) to find, you have %s!' %
|
||||||
(game.guess.count('_'), game.triesLeft()))
|
(game.guess.count('_'), game.guess,
|
||||||
|
game.triesLeft()))
|
||||||
# So, a game is going on, but let's see if it's timed out. If it is
|
# So, a game is going on, but let's see if it's timed out. If it is
|
||||||
# we create a new one, otherwise we inform the user
|
# we create a new one, otherwise we inform the user
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user