From f08f8629ee1cc2f294281783bf47c5fa9098a313 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Tue, 15 Dec 2015 21:54:41 +0700 Subject: [PATCH] try to use color --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 231a064..a8efb28 100644 --- a/index.js +++ b/index.js @@ -55,13 +55,13 @@ client.addListener('pm', function (from, message) { redisClient.on("pmessage", function (pattern, channel, message) { if (channel.match(/^kimochi/)) { var gateway = channel.match(/gw:(.*)\.text/)[1]; - client.say(config.globals.aaa_pull_channel, message + ' (' + gateway + ')'); + client.say(config.globals.aaa_pull_channel, message + irc.colors.wrap('dark_red', ' (' + gateway + ')')); } else if (channel.match(/^echi/)) { var gateway = channel.match(/gw:(.*)\.message$/)[1]; if (gateway == config.globals.echi_gw_blacklist) { return; } - client.say(config.globals.topup_message_channel, message + ' (' + gateway + ')'); + client.say(config.globals.topup_message_channel, message + irc.colors.wrap('dark_red', ' (' + gateway + ')')); } }); -- 1.9.0