mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
commands.wrap update
This commit is contained in:
parent
4b86bf5eaf
commit
31d71b1a8e
@ -43,8 +43,8 @@ import supybot.dbi as dbi
|
|||||||
import supybot.conf as conf
|
import supybot.conf as conf
|
||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
import supybot.ircdb as ircdb
|
import supybot.ircdb as ircdb
|
||||||
|
from supybot.commands import *
|
||||||
import supybot.plugins as plugins
|
import supybot.plugins as plugins
|
||||||
from supybot.commands import wrap
|
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
|
@ -176,8 +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, [additional('channel'), additional('nonInt'),
|
time = wrap(time, [optional('channel'), optional('nonInt'),
|
||||||
optional('float', TIME.time)])
|
additional('float', TIME.time)])
|
||||||
|
|
||||||
def elapsed(self, irc, msg, args, seconds):
|
def elapsed(self, irc, msg, args, seconds):
|
||||||
"""<seconds>
|
"""<seconds>
|
||||||
|
Loading…
Reference in New Issue
Block a user