diff options
| author | 2018-10-11 01:26:16 +0200 | |
|---|---|---|
| committer | 2018-10-11 01:26:16 +0200 | |
| commit | c1495e9c1fc4a2d7142ba28debb2119bcb8ca5df (patch) | |
| tree | 08bdc9f3d44149f5b4d888c28c5c490057d992ce /modules | |
| parent | Merge pull request #24 from panicbit/patch-1 (diff) | |
| signature | ||
Fix column obsession
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/coins.py | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/modules/coins.py b/modules/coins.py index 3a7033eb..a50239de 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -168,16 +168,22 @@ class Module(object): if win: event["user"].set_setting("coins", str(user_coins+coin_bet)) - 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)) + 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 + ) + ) 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)) + 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 + ) + ) @utils.hook("received.command.sendcoins", min_args=2, authenticated=True) def send(self, event): |
