Default !lotterybuy to 1 ticket

This commit is contained in:
jesopo 2018-10-12 20:20:32 +01:00
parent c5b07f520e
commit 59bc75988b

View file

@ -446,7 +446,9 @@ class Module(ModuleManager.BaseModule):
:help: By ticket(s) for the lottery
:usage: [amount]
"""
amount = event["args_split"][0]
amount = 1
if event["args_split"]:
amount = event["args_split"][0]
if not amount.isdigit():
event["stderr"].write("%s: Please provide a positive number "
"of tickets to buy" % event["user"].nickname)