Disabled reply chatter by default.
This commit is contained in:
parent
326b8b887c
commit
33adc43876
@ -11,7 +11,8 @@ local action = function(msg)
|
|||||||
-- This is awkward, but if you have a better way, please share.
|
-- This is awkward, but if you have a better way, please share.
|
||||||
if msg.text_lower:match('^' .. bot.first_name .. ',') then
|
if msg.text_lower:match('^' .. bot.first_name .. ',') then
|
||||||
elseif msg.text_lower:match('^@' .. bot.username .. ',') 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
|
elseif msg.from.id == msg.chat.id then
|
||||||
else
|
else
|
||||||
return true
|
return true
|
||||||
|
Reference in New Issue
Block a user