From a87196c608a237968918d1c21985926850001598 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 21 Sep 2018 11:38:55 +0100 Subject: Change Utils.color to take a string to wrap in color --- modules/commands.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/commands.py') diff --git a/modules/commands.py b/modules/commands.py index 1a8b631a..f0068c57 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -37,12 +37,10 @@ class Out(object): class StdOut(Out): def prefix(self): - return "%s%s%s" % (Utils.color(Utils.COLOR_GREEN), - self.module_name, Utils.FONT_RESET) + return Utils.color(Utils.bold(self.module_name), Utils.COLOR_GREEN) class StdErr(Out): def prefix(self): - return "%s!%s%s" % (Utils.color(Utils.COLOR_RED), - self.module_name, Utils.FONT_RESET) + return Utils.color(Utils.bold(self.module_name), Utils.COLOR_RED) class Module(object): def __init__(self, bot, events, exports): -- cgit v1.3.1-10-gc9f91