Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (18 sloc) 379 Bytes
# Description:
# Renders an JSON array to spark graph
#
# Dependencies:
# "textspark": "0.0.4"
#
# Configuration:
# None
#
# Commands:
# hubot spark me [1,2,3,4,5,6,7,3] - ouputs a spark rendered graph
#
# Author:
# nesQuick
spark = require('textspark')
module.exports = (robot) ->
robot.respond /spark me (.*)/i, (msg) ->
msg.send spark JSON.parse msg.match[1]
You can’t perform that action at this time.