Skip to content
This repository
file 23 lines (21 sloc) 0.417 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# 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
Something went wrong with that request. Please try again.