Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

robut-giphy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robut-giphy

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Robut-giphy

A giphy plugin and meme generator for the robut hipchat bot.

Installation

Install the gem

gem install 'robut-giphy'

Add these lines to your Chatfile:

require 'robut/plugin/giphy'

Robut::Plugin.plugins << Robot::Plugin::Giphy

For meme-generation support, also add the following:

require 'robut/plugin/giphy/memes'

Robut::Plugin.plugins << Robut::Plugin::Giphy::Memes

By default, robut-giphy uses the Giphy beta API key. You may wish to replace this with your own API key:

Robut::Plugin::Giphy.configure do |c|
  c.api_key = 'your_api_key'
end

robut-giphy filters results to those set to PG by default. If you want to change this:

Robut::Plugin::Giphy.configure do |c|
  c.rating = 'pg-13' # pg, pg-13 or r
end

Usage

This plugin searches giphy for a random gif matching a search phrase, and displays it in chat. For example:

@robut giphy funny kitten

If the meme plugin is also loaded, the gif will be run through memecaption to add up to two lines of text

@robut giphy funny kitten; a top caption goes here

@robut giphy cat wig; a top caption; a bottom caption

Contributing

You probably know the drill already...

  1. Fork it
  2. Create a feature branch
  3. Write some tests
  4. Commit your changes
  5. Push to the branch
  6. Create a new Pull Request

License

(c) Simon Detheridge, 2015 Released under the MIT License

FAQs

Package last updated on 06 Jun 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc