For photo messages, bot will look for commands in the caption if available.
Fixed bug in chatter.lua where the bot will attempt to reply to photo messages.
This commit is contained in:
@ -8,6 +8,8 @@ local triggers = {
|
||||
|
||||
local action = function(msg)
|
||||
|
||||
if msg.text == '' then return end
|
||||
|
||||
-- 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
|
||||
|
Reference in New Issue
Block a user