mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
Added $randomint
This commit is contained in:
parent
82d2d8162a
commit
51f80108c4
@ -311,6 +311,7 @@ class Toggleable(object):
|
||||
|
||||
randomnickre = re.compile ("\$randomnick", re.I)
|
||||
randomdatere = re.compile ("\$randomdate", re.I)
|
||||
randomintre = re.compile ("\$randomint", re.I)
|
||||
whore = re.compile ("\$who", re.I)
|
||||
botnickre = re.compile("\$botnick", re.I)
|
||||
todayre = re.compile("\$today", re.I)
|
||||
@ -328,6 +329,7 @@ def standardSubstitute(irc, msg, text):
|
||||
text)
|
||||
t = pow(2,30)*random.random()+time.time()/4.0
|
||||
text = randomdatere.sub(time.ctime(t), text)
|
||||
text = randomintre.sub(random.random(), text)
|
||||
text = whore.sub(msg.nick, text)
|
||||
text = botnickre.sub(irc.nick, text)
|
||||
text = todayre.sub(time.ctime(), text)
|
||||
|
Loading…
Reference in New Issue
Block a user