Merge branch 'develop' of github.com:ClouDev/CloudBot into develop

This commit is contained in:
Luke Rogers 2012-09-12 17:04:24 +12:00
commit aef3b7acad

View file

@ -9,7 +9,7 @@ color_codes = {
}
with open("plugins/data/8ball_responses.txt") as f:
responses = [multiword_replace(line.strip(), color_codes) for line in
responses = [line.strip() for line in
f.readlines()if not line.startswith("//")]
@ -19,5 +19,5 @@ def eightball(input, me=None):
"in electronic form. Ask and it shall be answered!"
# here we use voodoo magic to tell the future
magic = random.choice(responses)
magic = multiword_replace(random.choice(responses), color_codes)
me("shakes the magic 8 ball... %s" % magic)