mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-27 21:22:39 +01:00
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:
|
||||
format = self.registryValue('format')
|
||||
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):
|
||||
"""<seconds>
|
||||
|
Loading…
Reference in New Issue
Block a user