Giter VIP home page Giter VIP logo

hubot-ama's Introduction

hubot-ama

A hubot plugin that hosts AMAs.

See src/ama.coffee for full documentation.

Usage

  • ama start - pick someone for an AMA and repeat every 24 hours
  • ama stop - stop picking AMAs every 24 hours
  • ama current - display the current AMA celebrity
  • ama pass - stops the ama and returns the selected candidate's weight to the previous value
  • ama add - add yourself to the AMA list
  • ama remove - remove yourself from the AMA list
  • ama list - lists all AMA candidates
  • ama odds - shows odds of each candidate being chosen
  • ama clear - clears selections (admin only)

Installation

In hubot project repo, run:

npm install hubot-ama --save

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

["hubot-ama"]

The plugin by default only works in channels called #bots, for testing, and #ama. To change that, fork the repo and modify ama.coffee. Also, the admins are by default a set of people who have contributed to this in our personal Slack - the only command you need admin abilities is ama clear, so it should run fine without modification, unless you need that specific command (we've only had to use it once, and that was to after some heavy modifications to the script and changed the way we stored the user list). Again, to change the admins, simply fork the repo and modify the script.

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.