Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (20 sloc) 0.532 kb
# Description:
# Allow Hubot to show the image from a quickmeme link, as dragging
# from their site is a pain.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# http://www.quickmeme.com/meme/* - Detects the url and displays the image
#
# Author:
# chrisdrackett
module.exports = (robot) ->
robot.hear /https?:\/\/www\.quickmeme\.com\/\w+\/(\w+)\//i, (msg) ->
return if msg.match[2] # Ignore already embedded images.
id = msg.match[1]
msg.send "http://i.qkme.me/" + id + ".jpg"
Jump to Line
Something went wrong with that request. Please try again.