Default !lotterybuy to 1 ticket
This commit is contained in:
parent
c5b07f520e
commit
59bc75988b
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue