An express wrapper for cowsay, so you can moo like you mean it in Slack.
/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 |
|| ||
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"
}
Click the button below:
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.