Giter Site home page Giter Site logo

gordify's Introduction

Gordify

Gordify is a chat bot that helps you organize lunch-out plans for your slack team.

It has been built with howdy's botkit framework and is ready for you to use at the following URL: https://gordify.herokuapp.com.

Bot interactions

Once you add the Gordify to any channel within your slack's workspace your team members can interact with it:

  • When someone says @gordify start, the bot will prepare a lunch plan and will ask people out for lunch: Ey! who is going to have lunch out today?.
  • When someone says @gordify yo and there's a lunch plan prepared, the bot will include the person in the plan and will reply with: Pointed @<username> ๐Ÿ˜‰
  • When someone says @gordify stop, and there's a lunch plan the bot will stop accepting people and it will organize them in groups (maximum group size is seven) and assign leader to each group, e.g.
someone:
  @gordify stop
gordify:
  Group 1: @helen,@peter,@susan,@george
  Leader: @susan

  Group 2: @claire,@maria,@mark,@hugo
  Leader: @maria

Slack App Setup

First, run ngrok http 3000 this will give an URL that we will need to allow slack to communicate with your bot.

Then, create a new slack app following docs at https://api.slack.com/slack-apps.

Grab your app client id and secret, and start setting up the bot in development, then come back when ready.

Make sure to enable the following features in your slack app:

  • Bot User: Name for your bot
  • Permissions: Use <YOUR NGROK URL>/oauth as your redirect URL.
  • Events Subscriptions:
    • Use <YOUR NGROK URL/slack/receive> as webhook URL.
    • Subscribe to bot events: app_mention, message.channels, and message.im.

Development

You will need the following:

  • NodeJS V8
  • MongoDB
  • Ngrok (or similar)
  • A slack app (see below)
  • Yarn (optional)
  • NVM (optional)

Then you can install it with:

$ git clone https://github.com/anxhe/gordify
$ cd gordify
$ yarn install
$ echo -e "MONGO_URI=mongodb://localhost/gordify_dev\nclientId=<YOUR SLACK CLIENT ID>\nclientSecret=<YOUR SLACK CLIENT SECRET>" > .env

Now you can start it with as follows:

$ yarn run dev

Then visit http://localhost:3000 and click on 'Add to Slack' button and authorize bot to joing your Slack's workspace.

NOTE: By default gordify runs on PORT 3000, this can be changed in .env file.

Tests

$ yarn run test

gordify's People

Contributors

anirvan avatar anxhe avatar ccruson avatar dakotasmith avatar esoelzer avatar johanhenrikssn avatar jsdelivrbot avatar sinned avatar

Watchers

 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.