shrug & lenny now reply to a replied message
fewer parsing errors with dogify help now triggered with /start
This commit is contained in:
		| @@ -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' | ||||
|  | ||||
|   | ||||
| @@ -8,6 +8,7 @@ PLUGIN.doc = [[ | ||||
| PLUGIN.triggers = { | ||||
| 	'^/help', | ||||
| 	'^/h$', | ||||
| 	'^/start$' | ||||
| } | ||||
|  | ||||
| function PLUGIN.action(msg) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 dupie
					dupie