Merged is this a rich picture

This commit is contained in:
Jon Michael Aanes 2018-06-14 15:41:47 +02:00
parent 1eea02bc44
commit 7cd412ec64

View File

@ -562,18 +562,6 @@ function memes.generate_for_message (user, message)
return 'https://www.youtube.com/watch?v=wl-LeTFM8zo', 'MACHINE'
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
local url = message:match '^[Cc]urb%s+[Yy]our%s+(.+)$'
if url then
@ -617,6 +605,16 @@ function memes.generate_for_message (user, message)
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
local topics = get_topics_from_comparison_message(message)
if not topics then return end