wallet args in !roulette need to have their position calculated!

This commit is contained in:
jesopo 2018-10-21 08:21:58 +01:00
parent 8ea6db9422
commit b69e334ad0

View file

@ -444,10 +444,13 @@ class Module(ModuleManager.BaseModule):
:help: Spin a roulette wheel
:usage: <type> <amount> [wallet_in:wallet_out]
"""
expected_args = 1
expected_args += len(event["args_split"][0].split(","))
wallet_in, wallet_out = self._default_wallets(event["user"])
if len(event["args_split"]) > 2:
if len(event["args_split"]) > expected_args:
wallet_in, wallet_out = self._parse_wallets(event["user"],
event["args_split"][2])
event["args_split"][expected_args])
bets = event["args_split"][0].lower().split(",")
if "0" in bets: