Stabilitätsverbesserungen

This commit is contained in:
Akamaru 2016-09-02 12:50:29 +02:00
parent 031886452b
commit 7d0d549720

View File

@ -83,7 +83,7 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec
name2 = '' name2 = ''
end end
if msg.from.username then if msg.from.username then
name3 = ' (@'..msg.from.username..')' name3 = ' \27[31m(@'..msg.from.username..')\27[0m'
else else
name3 = '' name3 = ''
end end
@ -135,7 +135,7 @@ function bot:on_msg_receive(msg, config) -- The fn run whenever a message is rec
filetext = '' filetext = ''
end 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) print(full_message)
if msg.date < os.time() - 5 then return end -- Do not process old messages. if msg.date < os.time() - 5 then return end -- Do not process old messages.