a1a4978a1b
personality.lua -> interactions.lua innumerable improvements
19 lines
267 B
Lua
19 lines
267 B
Lua
local PLUGIN = {}
|
|
|
|
PLUGIN.triggers = {
|
|
'^/lmgtfy'
|
|
}
|
|
|
|
function PLUGIN.action(msg)
|
|
|
|
if not msg.reply_to_message then return end
|
|
msg = msg.reply_to_message
|
|
|
|
local message = 'http://lmgtfy.com/?q=' .. URL.escape(msg.text)
|
|
|
|
send_msg(msg, message)
|
|
|
|
end
|
|
|
|
return PLUGIN
|