Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
23 lines (21 sloc) 0.417 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.heroku.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.