Add ability to send rainbows to other galaxies
This commit is contained in:
parent
4a152a9104
commit
db3365c81a
@ -21,6 +21,11 @@ def rainbow(phenny, input):
|
|||||||
arg = input.group(2)
|
arg = input.group(2)
|
||||||
if not arg:
|
if not arg:
|
||||||
return phenny.say(colorize("Rainbow") + "\x03 What?")
|
return phenny.say(colorize("Rainbow") + "\x03 What?")
|
||||||
phenny.say(colorize(arg))
|
if arg.startswith("#") and ' ' in arg and input.admin:
|
||||||
|
ch = arg.split(" ")[0]
|
||||||
|
arg = " ".join(arg.split(" ")[1:])
|
||||||
|
phenny.write(['PRIVMSG', ch], colorize(arg))
|
||||||
|
else:
|
||||||
|
phenny.say(colorize(arg))
|
||||||
|
|
||||||
rainbow.commands = ['rainbow']
|
rainbow.commands = ['rainbow']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user