Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
23 lines (21 sloc) 0.42 kB
# Description:
# ASCII art
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
# hubot ascii me <text> - Show text in ascii art
#
# Author:
# atmos
module.exports = (robot) ->
robot.respond /ascii( me)? (.+)/i, (msg) ->
msg
.http("http://asciime.herokuapp.com/generate_ascii")
.query(s: msg.match[2].split(' ').join(' '))
.get() (err, res, body) ->
msg.send body
Jump to Line
Something went wrong with that request. Please try again.