slight tweaks to plugins/fmylife.py
This commit is contained in:
parent
a4f9c2d070
commit
3d825f87d3
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,8 @@ base_url = 'http://www.fmylife.com/'
|
|||
def fml(inp):
|
||||
".fml [id] -- gets a random quote from fmyfife.com"
|
||||
|
||||
inp = inp.replace("#","") # this lets people use .fml #123456
|
||||
|
||||
if inp:
|
||||
if not inp.isdigit():
|
||||
return "Invalid ID!"
|
||||
|
|
Reference in a new issue