Skip to content

mxkxf/moo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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 git@github.com: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