diff options
| author | 2018-10-12 16:08:22 +0100 | |
|---|---|---|
| committer | 2018-10-12 16:08:22 +0100 | |
| commit | bab555207c66ae47dab56d83be0780f7e4afa236 (patch) | |
| tree | 2b4a6fcb75693128155cb57b97d5f0373f4a5b1f /modules | |
| parent | Introduce a finite coin system in modules/coins.py (diff) | |
| signature | ||
Show cents in !bank balance in modules/coins.py
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/coins.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/coins.py b/modules/coins.py index 6c96dd00..ec3c8a61 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -50,8 +50,8 @@ class Module(object): @utils.hook("received.command.bank") def bank(self, event): - event["stdout"].write("The Bank has %d coins" % - self._get_pool(event["server"])) + event["stdout"].write("The Bank has %s coins" % + "{0:.2f}".format(self._get_pool(event["server"]))) @utils.hook("received.command.coins") def coins(self, event): |
