From 75179e41c2efde6831a06ddabfeddf31e2f217f7 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Wed, 23 Sep 2015 09:11:30 -0400 Subject: [PATCH] removed debugging code --- bot.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bot.lua b/bot.lua index 2fa5e8e..1833cf3 100755 --- a/bot.lua +++ b/bot.lua @@ -23,9 +23,6 @@ function on_msg_receive(msg) for i,v in pairs(plugins) do for j,w in pairs(v.triggers) do if string.match(lower, w) then - if not counter[msg.from.id] then counter[msg.from.id] = 0 end - counter[msg.from.id] = counter[msg.from.id] + 1 - print(msg.from.first_name, msg.from.id, counter[msg.from.id]) if v.typing then send_chat_action(msg.chat.id, 'typing') end @@ -108,7 +105,6 @@ end bot_init() last_update = 0 -counter = {} while is_started do