Giter Club home page Giter Club logo

hubot-pugme's Introduction

Hubot script for showing random pictures with pugs.

The main goal of the project is to resurrect the original pugme which is written in CoffeScript. Thus, the first version of the script was based on the original code of pugme converted into JavaScript (with slight changes) using decaffeinate. Then, a couple of enhancements were added to the script:

  • the PUGS_LIMIT environment variable to limit the number of pugs when invoking hubot pug bomb N;
  • a possibility to request pugs asynchronously.

Installation

In hubot project repo, run:

npm install git+https://github.com/tolstoyevsky/hubot-pugme --save

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

[
  "hubot-pugme"
]

Configuration

The script supports the only configuration parameter which is PUGS_LIMIT. It allows the administrators to limit the maximum number of pugs. By default, the parameter is equal to 5.

Sample Interaction

user>> hubot pug me
hubot>> http://29.media.tumblr.com/tumblr_lisw5rptyA1qbbpjfo1_500.jpg
user>> hubot pug bomb
hubot>> http://30.media.tumblr.com/tumblr_lsw1m0u7ry1qb08qmo1_500.jpg
hubot>> http://25.media.tumblr.com/tumblr_lk7v8zCcIn1qaa50yo1_500.jpg
hubot>> http://26.media.tumblr.com/tumblr_ltee8lg9wd1qb08qmo1_500.jpg
hubot>> http://26.media.tumblr.com/tumblr_ll7aoxHGfW1qb08qmo1_500.jpg
hubot>> http://28.media.tumblr.com/tumblr_lk8iieigtQ1qzj3syo1_500.jpg

Authors

See AUTHORS.

Licensing

hubot-pugme is available under the Apache License, Version 2.0.

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.