removed debugging code

This commit is contained in:
topkecleon 2015-09-23 09:11:30 -04:00
parent c7ba76e72b
commit 75179e41c2

View File

@ -23,9 +23,6 @@ function on_msg_receive(msg)
for i,v in pairs(plugins) do for i,v in pairs(plugins) do
for j,w in pairs(v.triggers) do for j,w in pairs(v.triggers) do
if string.match(lower, w) then 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 if v.typing then
send_chat_action(msg.chat.id, 'typing') send_chat_action(msg.chat.id, 'typing')
end end
@ -108,7 +105,6 @@ end
bot_init() bot_init()
last_update = 0 last_update = 0
counter = {}
while is_started do while is_started do