Git Product home page Git Product logo

jiphy's Introduction

Jiphy

A handy Slack bot to send your favorite GIFs.

Prerequisites

  • A Slack workspace.
  • An AWS account.

Setup

  1. Start by creating a Slack app and setting up a Slash Command.
  2. Configure your AWS account to work with Serverless.
  3. Configure a DYNAMO_TABLE_NAME environmental variable with the name of your DynamoDB table.
  4. Configure a SLACK_SIGNING_SECRET environmental variable with your Slack app's signing secret.
  5. After deploying the first time, add some images to your DynamoDB table, see the item structure below.
  6. Change any other values in serverless.yml to fit your needs.
  7. Profit!

Example image item

{
    "giphy_url": "https://giphy.com/gifs/studiosoriginals-gloria-domitille-collardey-business-woman-3o7TKy1qgGdbbMalcQ",
    "image_url": "https://media.giphy.com/media/3o7TKy1qgGdbbMalcQ/giphy.gif",
    "image_name": "tubular"
}
  • giphy_url - points to a Giphy page.
  • image_url - points to the actual image file, the "social" size is recommended for Slack to always show it.
  • image_name - name of the image. Used in the /jiphy command.

Usage

To send one of the available GIFs, type /jiphy <image> where <image> points to one of the image_names in your DynamoDB table. There is also a /jiphy list command to list all available images, only shown to the one sending it.

jiphy's People

Contributors

jwilsson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.