Disabled reply chatter by default.

This commit is contained in:
topkecleon 2015-11-26 22:25:03 -05:00
parent 326b8b887c
commit 33adc43876

View File

@ -11,7 +11,8 @@ local action = function(msg)
-- This is awkward, but if you have a better way, please share.
if msg.text_lower:match('^' .. bot.first_name .. ',') then
elseif msg.text_lower:match('^@' .. bot.username .. ',') then
elseif msg.reply_to_message and msg.reply_to_message.from.id == bot.id then
-- Uncomment the following line for Al Gore-like reply chatter.
-- elseif msg.reply_to_message and msg.reply_to_message.from.id == bot.id then
elseif msg.from.id == msg.chat.id then
else
return true