shrug & lenny now reply to a replied message

fewer parsing errors with dogify
help now triggered with /start
This commit is contained in:
dupie 2015-07-08 16:01:15 -04:00
parent 79f8f9feb2
commit ef5469f62a
4 changed files with 14 additions and 0 deletions

View File

@ -18,6 +18,7 @@ function PLUGIN.action(msg)
end
local input = string.gsub(input, ' ', '')
local input = string.lower(input)
url = 'http://dogr.io/' .. input .. '.png'

View File

@ -8,6 +8,7 @@ PLUGIN.doc = [[
PLUGIN.triggers = {
'^/help',
'^/h$',
'^/start$'
}
function PLUGIN.action(msg)

View File

@ -5,7 +5,13 @@ PLUGIN.triggers = {
}
function PLUGIN.action(msg)
if msg.reply_to_message then
msg = msg.reply_to_message
end
send_msg(msg, '( ͡° ͜ʖ ͡°)')
end
return PLUGIN

View File

@ -5,7 +5,13 @@ PLUGIN.triggers = {
}
function PLUGIN.action(msg)
if msg.reply_to_message then
msg = msg.reply_to_message
end
send_msg(msg, '¯\\_(ツ)_/¯')
end
return PLUGIN