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:
topkecleon
2015-11-29 06:41:53 -05:00
parent faa86ab8fd
commit 4bd0a72b5a
2 changed files with 3 additions and 1 deletions

View File

@ -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