Giter VIP home page Giter VIP logo

hubot-stache's Introduction

hubot-stache

npm version

Hubot plugin to add a moustache to the face of a photo. This plugin uses AWS Rekognition for face detection and ImageMagick (on the hubot server) for layering the stache on the image.

Currently this hubot plugin only works with Slack. If you would like to help port it to other platforms, submit a Pull Request

Prerequisites

You will need hubot-redis-brain installed and working before installation

Installation

This hubot script requires version 4+ of the hubot-slack slack adapter package

npm install hubot-stache --save
  • Add the following code in your external-scripts.json file.
["hubot-stache"]
  • Be sure your AWS Keys are in the environment. You will need to grant AWS credentials with permissions to the Rekognition service.
export HUBOT_AWS_REKOGNITION_ACCESS_KEY_ID="12345678"
export HUBOT_AWS_REKOGNITION_SECRET_ACCESS_KEY="abc123456def"

Note

This script uses some of the same listeners as hubot-google-images which is installed by default when using the Yeoman generator. If you are not using hubot-google-images, you may want to remove it from your external-scripts.json file.

Usage

  • Upload a photo to slack (at least 500px x 300px) that contains at least one face
  • Add a comment to the photo upload @hubot stache me
  • Hubot will upload a moustachified version of the photo to Slack

Tests

  • Use node 6.2+
  • npm install
  • npm test

hubot-stache's People

Contributors

neufeldtech avatar

Watchers

 avatar  avatar  avatar

Forkers

josh5k

hubot-stache's Issues

Hubot-Stache Broken

Slack no longer has 'comments' on images, but instead everything is a thread.

This requires further development on this plugin to fix it.

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.