wallet args in !roulette need to have their position calculated!
This commit is contained in:
parent
8ea6db9422
commit
b69e334ad0
1 changed files with 5 additions and 2 deletions
|
@ -444,10 +444,13 @@ class Module(ModuleManager.BaseModule):
|
||||||
:help: Spin a roulette wheel
|
:help: Spin a roulette wheel
|
||||||
:usage: <type> <amount> [wallet_in:wallet_out]
|
: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"])
|
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"],
|
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(",")
|
bets = event["args_split"][0].lower().split(",")
|
||||||
if "0" in bets:
|
if "0" in bets:
|
||||||
|
|
Loading…
Reference in a new issue