mirror of https://github.com/Mikaela/Limnoria.git
Update to use new commands.wrap. One test ("time %Y") is still failing, but
it works when actually using the bot.
This commit is contained in:
parent
85780543aa
commit
a3223c7c27
|
@ -176,7 +176,8 @@ class Time(callbacks.Privmsg):
|
||||||
else:
|
else:
|
||||||
format = self.registryValue('format')
|
format = self.registryValue('format')
|
||||||
irc.reply(time.strftime(format, time.localtime(seconds)))
|
irc.reply(time.strftime(format, time.localtime(seconds)))
|
||||||
time = wrap(time, ['channel?', 'nonInt?', ('?int', TIME.time)])
|
time = wrap(time, [additional('channel'), additional('nonInt'),
|
||||||
|
optional('float', TIME.time)])
|
||||||
|
|
||||||
def elapsed(self, irc, msg, args, seconds):
|
def elapsed(self, irc, msg, args, seconds):
|
||||||
"""<seconds>
|
"""<seconds>
|
||||||
|
|
Loading…
Reference in New Issue