Merge pull request #25 from panicbit/patch-2

Fix column obsession
This commit is contained in:
jesopo 2018-10-11 10:35:07 +01:00 committed by GitHub
commit f0f0abcd84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,13 +171,19 @@ class Module(object):
event["stdout"].write(
"%s flips %s and wins %s coin%s! (new total: %s)" % (
event["user"].nickname, side_name, coin_bet_str,
"" if coin_bet == 1 else "s", user_coins+coin_bet))
"" if coin_bet == 1 else "s",
user_coins+coin_bet
)
)
else:
event["user"].set_setting("coins", str(user_coins-coin_bet))
event["stdout"].write(
"%s flips %s and loses %s coin%s! (new total: %s)" % (
event["user"].nickname, side_name, coin_bet_str,
"" if coin_bet == 1 else "s", user_coins-coin_bet))
"" if coin_bet == 1 else "s",
user_coins-coin_bet
)
)
@utils.hook("received.command.sendcoins", min_args=2, authenticated=True)
def send(self, event):