aboutsummaryrefslogtreecommitdiff
path: root/modules/ducks.py
diff options
context:
space:
mode:
authorGravatar dngfx2018-09-01 10:52:04 +0100
committerGravatar dngfx2018-09-01 10:52:04 +0100
commit0a96a79077d82de51533d914296b7a51ca19eb3b (patch)
treeb54e7e267afb46fab572cea0d78de44529b91ee1 /modules/ducks.py
parentFormatting request (#14) (diff)
signature
Cosmetic enhancement for ducks and dice.
Diffstat (limited to 'modules/ducks.py')
-rw-r--r--modules/ducks.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/ducks.py b/modules/ducks.py
index fac698f1..e50cc055 100644
--- a/modules/ducks.py
+++ b/modules/ducks.py
@@ -1,6 +1,6 @@
from operator import itemgetter
from threading import Timer
-import datetime
+import Utils
import random
@@ -197,9 +197,10 @@ class Module(object):
grammar = "" if befriended_ducks == 0 else "s"
event["stdout"].write(
- target + ", you've befriended " + str(
- befriended_ducks + 1) + " duck" + grammar + " in " + event[
- "target"].name)
+ target + ", you've befriended " + Utils.bold(str(
+ befriended_ducks + 1)) + " duck" + grammar + " in " +
+ Utils.bold(event[
+ "target"].name))
self.duck_loop_entry(event)
@@ -225,9 +226,10 @@ class Module(object):
grammar = "" if shot_ducks == 0 else "s"
event["stdout"].write(
- target + ", you've shot " + str(
- shot_ducks + 1) + " duck" + grammar + " in " + event[
- "target"].name)
+ target + ", you've shot "
+ + Utils.bold(str(shot_ducks + 1)) + " duck"
+ + grammar + " in "
+ + Utils.bold(event["target"].name))
self.duck_loop_entry(event)