Giter Club home page Giter Club logo

moo's Introduction

moo

Build Status

An express wrapper for cowsay, so you can moo like you mean it in Slack.

Usage

/moo yoyoyo

Gives:

 ________
< yoyoyo >
 --------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

You can also use eyes and tongue parameters to customize your moo even more:

/moo iā€™m very confmoosed [eyes Oo] 

Gives:

 ______________________
< i'm very confmoosed  >
 ----------------------
        \   ^__^
         \  (Oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
/moo i like to show my tongue [tongue U] [eyes **]

Gives :

 ____________________________
< i like to show my tongue  >
 ----------------------------
        \   ^__^
         \  (**)\_______
            (__)\       )\/\
             U ||----w |
                ||     ||

Type the following to view usage options:

/moo help

Installation

Local

Install nodemon to make your life easier!

Then clone this repo from GitHub and install the Node.js dependencies.

git clone [email protected]:mikefrancis/moo.git
cd moo
echo "SLACK_TOKEN=testSlackToken" >> .env
npm install

Once installed, run nodemon to start the express server and watch for changes.

To test, send a POST request to the index of the server containing the following body:

{
 "token": "testSlackToken",
 "text": "yoyoyo"
}

Live

Click the button below:

Deploy

And make a note on your app's URL.

Then head to Slack and create a custom Slash Command, paste in your app's URL to the Integration URL field, and make a note of your token.

Head back to your Heroku app's Settings > Config Variables and create a new SLACK_TOKEN with the token value from above.

moo's People

Contributors

migweld avatar mikefrancis avatar

Watchers

 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.