Code Monkey home page Code Monkey logo

viima-test's Introduction

Viima/Slack Test Bot

A MVP slack bot that integrates Viima with Slack, written as part of the interview process. Provides simple slash command access to Viima internals from Slack. Written in a few days with no prior experience with any of the tech/products involved except from vim and Firefox.

Depends on

  • Node.js
  • ngork - For external access to node server. This also means that the bot slash commands need their URLs updating each time the server is restarted. Use port 3000.
  • https
  • dotenv- For managing env variables
  • body-parser - For taking input from slack
  • express - Super easy framework for the bot server

Installation / Setup / Run on Linux 64bit

Bot + dependencies

$ git clone https://github.com/ashksmith/viima-test.git
$ cd viima-test
$ npm install https dotenv body-parser express

ngork

$ wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
$ unzip path/to/zip && rm *.zip
$ chmod +x ngork
$ ngork http 3000

As mentioned, slack requires the updated ngork URL each time it's run. It's implementation independant, configure the template .env file with the details. Start bot

$ node skynet-server.js

Usage

The bot has 3 methods of interaction between the user, slack and viima.

/viima <category> <status> - Returns a list of ideas that match the status and category. It only supports the
default categories and statuses for now. 
/motd - Returns the same message that pops up when a user logs in to Viima.

The bot will watch for new ideas being posted, test by just adding a new idea to any board.

viima-test's People

Contributors

ashksmith 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.