Merged is this a rich picture
This commit is contained in:
parent
1eea02bc44
commit
7cd412ec64
22
memes.lua
22
memes.lua
|
@ -562,18 +562,6 @@ function memes.generate_for_message (user, message)
|
||||||
return 'https://www.youtube.com/watch?v=wl-LeTFM8zo', 'MACHINE'
|
return 'https://www.youtube.com/watch?v=wl-LeTFM8zo', 'MACHINE'
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Is this a rich picture?
|
|
||||||
if is_image_link(message) then
|
|
||||||
local url = message
|
|
||||||
local img_link = generate_is_this_a_pidgeon {
|
|
||||||
{ type = 'image', url = url },
|
|
||||||
{ type = 'text', text = 'Is this a rich picture?' }
|
|
||||||
}
|
|
||||||
return img_link, 'KYNG'
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do -- Curb your enthusiasm
|
do -- Curb your enthusiasm
|
||||||
local url = message:match '^[Cc]urb%s+[Yy]our%s+(.+)$'
|
local url = message:match '^[Cc]urb%s+[Yy]our%s+(.+)$'
|
||||||
if url then
|
if url then
|
||||||
|
@ -617,6 +605,16 @@ function memes.generate_for_message (user, message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Is this a rich picture?
|
||||||
|
if is_image_link(message) then
|
||||||
|
local url = message
|
||||||
|
local img_link = generate_is_this_a_pidgeon {
|
||||||
|
{ type = 'image', url = url },
|
||||||
|
{ type = 'text', text = 'Is this a rich picture?' }
|
||||||
|
}
|
||||||
|
return img_link, 'KYNG'
|
||||||
|
end
|
||||||
|
|
||||||
-- Comparison memes
|
-- Comparison memes
|
||||||
local topics = get_topics_from_comparison_message(message)
|
local topics = get_topics_from_comparison_message(message)
|
||||||
if not topics then return end
|
if not topics then return end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user