auth0/gynoid

Name: gynoid

Owner: Auth0

Description: Auth0 NodeJs ChatOps Service

Created: 2016-05-08 11:42:44.0

Updated: 2017-09-01 13:34:13.0

Pushed: 2017-12-10 22:41:17.0

Homepage: null

Size: 96

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Gynoid

This is our Slack bots platform customized to satisfy our developers:

We call these extensions Droids. To install new extensions, we have a Gynoid that serves as a wrapper for this library. Our Gynoid Droid is reponsible of registering and extending our bots directly from Slack.

What do you need?

Create a new Slack Bot and take note of its token. See the Slack documentation.

Optionally, generate a GitHub personal access token to install from your private GitHub repositories.

How to use it
  1. Clone this repository and install dependencies.

    install
    
  2. Update the configuration file gynoid.config.json and replace the placeholder with your Slack token. If you want to install droids from your private repositories, add your personal GitHub token as well (leave it empty for public access).

    
    s": {
    ITHUB_TOKEN": "",
    YNOID_TOKEN": "{slack-token}"
    
    
    
  3. Run! The process will clone the Gynoid droid and it'll start listening commands in Slack.

    start
    
Installing and Extending droids

In Slack, your Gynoid bot will start accepting commands to install or remove new bots. Each new bot requires a different Slack bot token, so if you want separate bots create new tokens for them.

By default, Gynoid droid accepts commands in a Slack channel named #gynoid_manage. We keep this channel private and only admins have access to it.

Starting a new bot

In Slack, type the following command to start a new bot:

ster {name} using {slack-token}

Where {name} is the name you want to register your bot (it's not the name of the bot in Slack, this name is used internally to extend or remove it). The {slack-token} is a new token or you can even re-use Gynoid's token to extend its functionality.

Extending a bot

To extend a bot, use the following Gynoid command in Slack:

nd {name} from {user/repository}

Where {name} is the ID of the bot that you used when you registered it, and {user/repository} is the location in GitHub of the code you want to use to extend. For example:

nd my-bot from auth0/concierge-droid
Authoring Droids

To create your own Droid Extension you need at least two files:

See the Concierge Droid Metadata and Concierge Droid Script as samples.

Once a droid code is pushed to GitHub, you can access it via Slack by running the extend command using Gynoid:

nd {name} from {user/repo}
Documentation

Coming soon! (Specially the JSON metadata definition)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.