mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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'
|
return 'someone'
|
||||||
ctime = time.strftime("%a %b %d %H:%M:%S %Y")
|
ctime = time.strftime("%a %b %d %H:%M:%S %Y")
|
||||||
localtime = time.localtime()
|
localtime = time.localtime()
|
||||||
|
gmtime = time.strftime("%a %b %d %H:%M:%S %Y", time.gmtime())
|
||||||
vars = CallableValueIrcDict({
|
vars = CallableValueIrcDict({
|
||||||
'who': msg.nick,
|
'who': msg.nick,
|
||||||
'nick': msg.nick,
|
'nick': msg.nick,
|
||||||
@ -652,6 +653,7 @@ def standardSubstitute(irc, msg, text, env=None):
|
|||||||
'channel': channel,
|
'channel': channel,
|
||||||
'botnick': irc.nick,
|
'botnick': irc.nick,
|
||||||
'now': ctime, 'ctime': ctime,
|
'now': ctime, 'ctime': ctime,
|
||||||
|
'utc': gmtime, 'gmt': gmtime,
|
||||||
'randnick': randNick, 'randomnick': randNick,
|
'randnick': randNick, 'randomnick': randNick,
|
||||||
'randdate': randDate, 'randomdate': randDate,
|
'randdate': randDate, 'randomdate': randDate,
|
||||||
'rand': randInt, 'randint': randInt, 'randomint': randInt,
|
'rand': randInt, 'randint': randInt, 'randomint': randInt,
|
||||||
|
Loading…
Reference in New Issue
Block a user