Cosmetic enhancement for ducks and dice.
This commit is contained in:
parent
c284608cbd
commit
0a96a79077
2 changed files with 13 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
import random
|
import random
|
||||||
|
import Utils
|
||||||
|
|
||||||
class Module(object):
|
class Module(object):
|
||||||
def __init__(self, bot, events):
|
def __init__(self, bot, events):
|
||||||
|
@ -38,6 +38,6 @@ class Module(object):
|
||||||
total = sum(results)
|
total = sum(results)
|
||||||
results = ', '.join(map(str, results))
|
results = ', '.join(map(str, results))
|
||||||
|
|
||||||
event["stdout"].write("Rolled " + str_roll + " for a total "
|
event["stdout"].write("Rolled " + Utils.bold(str_roll) + " for a total "
|
||||||
+ "of " + str(total)
|
+ "of " + Utils.bold(str(total))
|
||||||
+ ": [" + results + "]")
|
+ ": " + results)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from operator import itemgetter
|
from operator import itemgetter
|
||||||
from threading import Timer
|
from threading import Timer
|
||||||
import datetime
|
import Utils
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
|
||||||
|
@ -197,9 +197,10 @@ class Module(object):
|
||||||
grammar = "" if befriended_ducks == 0 else "s"
|
grammar = "" if befriended_ducks == 0 else "s"
|
||||||
|
|
||||||
event["stdout"].write(
|
event["stdout"].write(
|
||||||
target + ", you've befriended " + str(
|
target + ", you've befriended " + Utils.bold(str(
|
||||||
befriended_ducks + 1) + " duck" + grammar + " in " + event[
|
befriended_ducks + 1)) + " duck" + grammar + " in " +
|
||||||
"target"].name)
|
Utils.bold(event[
|
||||||
|
"target"].name))
|
||||||
|
|
||||||
self.duck_loop_entry(event)
|
self.duck_loop_entry(event)
|
||||||
|
|
||||||
|
@ -225,9 +226,10 @@ class Module(object):
|
||||||
grammar = "" if shot_ducks == 0 else "s"
|
grammar = "" if shot_ducks == 0 else "s"
|
||||||
|
|
||||||
event["stdout"].write(
|
event["stdout"].write(
|
||||||
target + ", you've shot " + str(
|
target + ", you've shot "
|
||||||
shot_ducks + 1) + " duck" + grammar + " in " + event[
|
+ Utils.bold(str(shot_ducks + 1)) + " duck"
|
||||||
"target"].name)
|
+ grammar + " in "
|
||||||
|
+ Utils.bold(event["target"].name))
|
||||||
|
|
||||||
self.duck_loop_entry(event)
|
self.duck_loop_entry(event)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue