Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 623 Bytes
{exec} = require 'child_process'
option '-b','--bot [BOT]', 'Start a specific bot'
task "bot:start", "Start a bot", (options) ->
if not
throw "Bot is missing, use this task like this :\r\n\r\ncake -b mybot bot:start"
if typeof isnt 'string'
throw "Can't build that bot mate... Check your parameters\r\n\r\ncake -b mybot bot:start"
coffee = exec 'coffee ./bots/', (err,output) ->
if err
throw "Seems like a wrong name for a bot... Make sure this file exists : ./bot/"".coffee"
coffee.stdout.on 'data', (data) -> console.log data.toString().trim()
Jump to Line
Something went wrong with that request. Please try again.