From 7d0d549720a43f9a4af408707677f70a0c6afc6d Mon Sep 17 00:00:00 2001 From: Akamaru Date: Fri, 2 Sep 2016 12:50:29 +0200 Subject: [PATCH] =?UTF-8?q?Stabilit=C3=A4tsverbesserungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/bot.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miku/bot.lua b/miku/bot.lua index 51d9fef..da17ca8 100644 --- a/miku/bot.lua +++ b/miku/bot.lua @@ -83,7 +83,7 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec name2 = '' end if msg.from.username then - name3 = ' (@'..msg.from.username..')' + name3 = ' \27[31m(@'..msg.from.username..')\27[0m' else name3 = '' end @@ -135,7 +135,7 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec filetext = '' end - full_message = msg_time..from_chat..full_name..' >>> '..full_fwd_name..filetext..user_msg + full_message = msg_time..from_chat..full_name..' \27[36m>>>\27[0m '..full_fwd_name..filetext..user_msg print(full_message) if msg.date < os.time() - 5 then return end -- Do not process old messages.