Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 532 Bytes
# 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"
You can’t perform that action at this time.