Skip to content

azakordonets/moo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 28, 2016
24ee324 · Jan 28, 2016

History

48 Commits
Jan 25, 2016
Jan 25, 2016
Jan 18, 2016
Jan 19, 2016
Jan 18, 2016
Jan 28, 2016
Jan 18, 2016
Jan 20, 2016

Repository files navigation

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

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.

About

Slack slash command for cowsay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published