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,6 +446,8 @@ class Module(ModuleManager.BaseModule):
:help: By ticket(s) for the lottery :help: By ticket(s) for the lottery
:usage: [amount] :usage: [amount]
""" """
amount = 1
if event["args_split"]:
amount = event["args_split"][0] amount = event["args_split"][0]
if not amount.isdigit(): if not amount.isdigit():
event["stderr"].write("%s: Please provide a positive number " event["stderr"].write("%s: Please provide a positive number "