Some minor tweaks

This commit is contained in:
Luke Rogers 2013-08-02 12:05:44 +12:00
parent e574a0d41e
commit fb2b5fc26e
2 changed files with 3 additions and 4 deletions

View file

@ -1,5 +1,4 @@
from util import hook
from util.text import multiword_replace
from util import hook, text
import random
color_codes = {
@ -19,5 +18,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 = multiword_replace(random.choice(responses), color_codes)
magic = text.multiword_replace(random.choice(responses), color_codes)
me("shakes the magic 8 ball... %s" % magic)

View file

@ -4,7 +4,7 @@ base_url = "http://api.wunderground.com/api/{}/{}/q/{}.json"
@hook.command(autohelp=None)
def weather(inp, reply=None, db=None, nick=None, bot=None):
def weather(inp, reply=None, db=None, nick=None, bot=None, notice=None):
"weather <location> [dontsave] -- Gets weather data"\
" for <location> from Wunderground."