Add ability to send rainbows to other galaxies

master
Sfan5 2013-11-11 18:50:13 +01:00
parent 4a152a9104
commit db3365c81a
1 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,11 @@ def rainbow(phenny, input):
arg = input.group(2)
if not arg:
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']