GithubHelp home page GithubHelp logo

quentin-slack-command's Introduction

Quentin Slack Command

Introduction

Welcome to the NodeJS server that demonstrates how you can build a server that can be used to respond to server commands.

This project was born as a joke to my friend, Quentin Dallaserra, and I. We both love Slack and we love the /giphy command. I noticed Slack's API allows you create your own slash commands, so to pay homage to my friend Quentin, I created this server in order to embarrass him by implementing a response to Slack's POST request that is initiated when you type /quentin.

Local Development

To setup the server you will first need to install NodeJS.

NOTE: NodeJS must be >= v4.5, this is due to the fact that the code uses ECMAScript 6.

Next you will need to run:

npm install

Once the packages have been installed, you will notice a config file has been created: .env. Open up this file and edit the following properties:

PRIVATE_NETWORK_IP=127.0.0.1
SLACK_TOKEN=s89qc_a_long_string_soxs8x

You will find your Slack token on the custom command settings page.

You are almost done, you can now simply run:

npm start

This will start running the nodemon server on localhost:1337 that will automatically reload on any code changes.

Testing

All tests are in the testing directory and they use Mocha, Chai and Sinon.

Testing can be run by simply using:

npm test

This will run mocha.

quentin-slack-command's People

Watchers

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