Socket
Socket
Sign inDemoInstall

hubot-meme

Package Overview
Dependencies
92
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hubot-meme

Zero-configuration memes for your hubot via memecaptain.com


Version published
Weekly downloads
24
decreased by-11.11%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

hubot-meme

Zero-configuration memes for your hubot via memecaptain.com

See src/meme.coffee for full documentation.

Why hubot-meme? Unlike many other meme scripts, memecaptain.com requires no API key and has a painless setup. :smile:

Installation

In hubot project repo, run:

npm install hubot-meme --save

Then add hubot-meme to your external-scripts.json:

[
  "hubot-meme"
]

Extra Extra Memes!

Can't get enough?

In your environment variables set:

HUBOT_EXTRA_MEMES=True

This switches the robot.respond function to robot.hear so that your Hubot will match all text in the chatroom.

Sample Interaction

user1>> hubot help meme
hubot>> [Displays all possible memes]
user1>> @hubot Generate all the memes
hubot>> http://i.memecaptain.com/gend_images/PESlaQ.jpg

Currently Enabled Memes

See meme.coffee

Feel free to submit a pull-request if you want a meme added!

Extending Memes

By default, I'm keeping this set of memes and commands fairly clean and appropriate for a workplace. You can extend the memes in your own bot's code by requireing the memecaptain.coffee file, which handles all the API interactions.

Sample:

memeGenerator = require "hubot-meme/src/lib/memecaptain.coffee"

module.exports = (robot) ->
  robot.respond /(.+) (ALL the .+)/i, id: 'meme.all-the-things', (msg) ->
    memeGenerator msg, 'Dv99KQ', msg.match[1], msg.match[2]

New meme images can be added at http://memecaptain.com by pasting the URL into the Load URL then hitting enter. The src param of the URL is your image ID.

Keywords

FAQs

Last updated on 02 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc