From 59bc75988b94e8600d9802999e5d3736a0047917 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 12 Oct 2018 20:20:32 +0100 Subject: Default !lotterybuy to 1 ticket --- modules/coins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/coins.py b/modules/coins.py index 1a101c23..2498eb85 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -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) -- cgit v1.3.1-10-gc9f91