diff options
| author | 2018-09-21 11:38:55 +0100 | |
|---|---|---|
| committer | 2018-09-21 11:39:09 +0100 | |
| commit | a87196c608a237968918d1c21985926850001598 (patch) | |
| tree | 9327e021f1c1fa6258f5e9a57273bb72706b0ed3 /modules/commands.py | |
| parent | Don't pass around full server details more than we have to. (diff) | |
| signature | ||
Change Utils.color to take a string to wrap in color
Diffstat (limited to 'modules/commands.py')
| -rw-r--r-- | modules/commands.py | 6 |
1 files changed, 2 insertions, 4 deletions
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): |
