forked from khuxkm/cosmicbot
Updated return value for Failure case
This commit is contained in:
parent
03bcabfa94
commit
c55849ee36
|
@ -10,7 +10,7 @@ def water(user):
|
||||||
with open(os.path.expanduser("~{}/.botany/{}_plant_data.json".format(user,user))) as f:
|
with open(os.path.expanduser("~{}/.botany/{}_plant_data.json".format(user,user))) as f:
|
||||||
return json.load(f)['description'] # Success
|
return json.load(f)['description'] # Success
|
||||||
except:
|
except:
|
||||||
return "" # Failure
|
return False # Failure
|
||||||
|
|
||||||
@plugin.command("water")
|
@plugin.command("water")
|
||||||
def cmd_water(bot,channel,nick,user=None):
|
def cmd_water(bot,channel,nick,user=None):
|
||||||
|
|
Loading…
Reference in New Issue