Strip spaces
This commit is contained in:
parent
5ca45fea4b
commit
1062e69e56
|
@ -1,64 +0,0 @@
|
||||||
{
|
|
||||||
"connections":
|
|
||||||
{
|
|
||||||
"esper":
|
|
||||||
{
|
|
||||||
"server": "irc.esper.net",
|
|
||||||
"nick": "MyCloudBot",
|
|
||||||
"user": "cloudbot",
|
|
||||||
"realname": "CloudBot - http://git.io/cloudbotirc",
|
|
||||||
"mode": "",
|
|
||||||
"nickserv_password": "",
|
|
||||||
"nickserv_user": "",
|
|
||||||
"channels": ["#cloudbot", "#cloudbot2"],
|
|
||||||
"invite_join": true,
|
|
||||||
"auto_rejoin": false,
|
|
||||||
"command_prefix": "."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"disabled_plugins": [],
|
|
||||||
"disabled_commands": [],
|
|
||||||
"acls": {},
|
|
||||||
"api_keys":
|
|
||||||
{
|
|
||||||
"tvdb": "",
|
|
||||||
"wolframalpha": "",
|
|
||||||
"lastfm": "",
|
|
||||||
"rottentomatoes": "",
|
|
||||||
"soundcloud": "",
|
|
||||||
"twitter_consumer_key": "",
|
|
||||||
"twitter_consumer_secret": "",
|
|
||||||
"twitter_access_token": "",
|
|
||||||
"twitter_access_secret": "",
|
|
||||||
"wunderground": "",
|
|
||||||
"googletranslate": "",
|
|
||||||
"rdio_key": "",
|
|
||||||
"rdio_secret": ""
|
|
||||||
},
|
|
||||||
"permissions": {
|
|
||||||
"admins": {
|
|
||||||
"perms": ["adminonly", "addfactoid", "delfactoid", "ignore", "botcontrol", "permissions_users", "op"],
|
|
||||||
"users": ["examplea!user@example.com", "exampleb!user@example.com"]
|
|
||||||
},
|
|
||||||
"moderators": {
|
|
||||||
"perms": ["addfactoid", "delfactoid", "ignore"],
|
|
||||||
"users": ["examplec!user@example.com"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins":
|
|
||||||
{
|
|
||||||
"factoids":
|
|
||||||
{
|
|
||||||
"prefix": false
|
|
||||||
},
|
|
||||||
"ignore":
|
|
||||||
{
|
|
||||||
"ignored": []
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"censored_strings":
|
|
||||||
[
|
|
||||||
"mypass",
|
|
||||||
"mysecret"
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -76,7 +76,7 @@ def recipe(inp):
|
||||||
except ParseError as e:
|
except ParseError as e:
|
||||||
return "Could not parse recipe: {}".format(e)
|
return "Could not parse recipe: {}".format(e)
|
||||||
|
|
||||||
name = data["name"]
|
name = data["name"].strip()
|
||||||
return u"Try eating \x02{}!\x02 - {}".format(name, web.try_isgd(url))
|
return u"Try eating \x02{}!\x02 - {}".format(name, web.try_isgd(url))
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ def wtfisfordinner(inp):
|
||||||
except ParseError as e:
|
except ParseError as e:
|
||||||
return "Could not parse recipe: {}".format(e)
|
return "Could not parse recipe: {}".format(e)
|
||||||
|
|
||||||
name = data["name"].upper()
|
name = data["name"].strip().upper()
|
||||||
text = random.choice(phrases).format(name)
|
text = random.choice(phrases).format(name)
|
||||||
|
|
||||||
if censor:
|
if censor:
|
||||||
|
|
Reference in New Issue