Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
2 contributors

Users who have contributed to this file

@tombell @technicalpickles
23 lines (21 sloc) 430 Bytes
# Description:
# Cowsay.
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot cowsay <statement> - Returns a cow that says what you want
#
# Author:
# brettbuddin
module.exports = (robot) ->
robot.respond /cowsay( me)? (.*)/i, (msg) ->
msg
.http("http://cowsay.morecode.org/say")
.query(format: 'text', message: msg.match[2])
.get() (err, res, body) ->
msg.send body
You can’t perform that action at this time.