mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
add standardsubstitute vars 'utc' and 'gmt' which output current time in UTC.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
This commit is contained in:
parent
2c9f325cf4
commit
51eac7da5b
@ -644,6 +644,7 @@ def standardSubstitute(irc, msg, text, env=None):
|
||||
return 'someone'
|
||||
ctime = time.strftime("%a %b %d %H:%M:%S %Y")
|
||||
localtime = time.localtime()
|
||||
gmtime = time.strftime("%a %b %d %H:%M:%S %Y", time.gmtime())
|
||||
vars = CallableValueIrcDict({
|
||||
'who': msg.nick,
|
||||
'nick': msg.nick,
|
||||
@ -652,6 +653,7 @@ def standardSubstitute(irc, msg, text, env=None):
|
||||
'channel': channel,
|
||||
'botnick': irc.nick,
|
||||
'now': ctime, 'ctime': ctime,
|
||||
'utc': gmtime, 'gmt': gmtime,
|
||||
'randnick': randNick, 'randomnick': randNick,
|
||||
'randdate': randDate, 'randomdate': randDate,
|
||||
'rand': randInt, 'randint': randInt, 'randomint': randInt,
|
||||
|
Loading…
Reference in New Issue
Block a user