A few tweaks to plugins: weather.py now uses web.query for YQL, spellcheck.py has some renamed variables and uses new string formatting, choose.py has a nicer fail message.
This commit is contained in:
parent
de67aad764
commit
5f0d5f62a2
3 changed files with 13 additions and 17 deletions
|
@ -13,6 +13,6 @@ def choose(inp):
|
|||
if len(c) == 1:
|
||||
c = re.findall(r'(\S+)', inp)
|
||||
if len(c) == 1:
|
||||
return 'the decision is up to you'
|
||||
return 'The decision is up to you!'
|
||||
|
||||
return random.choice(c).strip()
|
||||
|
|
Reference in a new issue