diff options
Diffstat (limited to 'modules/coins.py')
| -rw-r--r-- | modules/coins.py | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/coins.py b/modules/coins.py index 433fb02d..a50239de 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -170,14 +170,20 @@ class Module(object): 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["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)) + "%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): |
