aboutsummaryrefslogtreecommitdiff
path: root/modules/coins.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-08-09 16:10:22 +0100
committerGravatar jesopo2018-08-09 16:11:46 +0100
commite477e8f04f94c6a61d3c7ddfbc6db6b4e6586aac (patch)
tree1d0d7bc9165d02eca6fd1f8e7a0c7676ba384787 /modules/coins.py
parentAdd help strings for stats.py (diff)
signature
"wins/loses %d coin(s)!" instead of "wins/loses %d!"
Diffstat (limited to 'modules/coins.py')
-rw-r--r--modules/coins.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/coins.py b/modules/coins.py
index 5822b919..52433064 100644
--- a/modules/coins.py
+++ b/modules/coins.py
@@ -94,12 +94,14 @@ class Module(object):
if win:
event["user"].set_setting("coins", user_coins+coin_bet)
- event["stdout"].write("%s flips %s and wins %d!" % (
- event["user"].nickname, side_name, coin_bet))
+ event["stdout"].write("%s flips %s and wins %d coin%s!" % (
+ event["user"].nickname, side_name, coin_bet,
+ "" if coin_bet == 1 else "s"))
else:
event["user"].set_setting("coins", user_coins-coin_bet)
- event["stdout"].write("%s flips %s and loses %d!" % (
- event["user"].nickname, side_name, coin_bet))
+ event["stdout"].write("%s flips %s and loses %d coin%s!" % (
+ event["user"].nickname, side_name, coin_bet,
+ "" if coin_bet == 1 else "s"))
def send(self, event):
send_amount = event["args_split"][1]