Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (23 sloc) 0.898 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# Description:
# Hubot will tell you its secrets.
# Example case: Someone in your room wants to add a new service
# hook in Github. Instead of passing around environment variables,
# Hubot will know what's up.
#
# Dependencies:
# (The Campfire adapter is the only supported adapter right now.
# This may change with time.)
#
# Configuration:
# HUBOT_CAMPFIRE_ROOM_NAME - Some places, like Github, require the actual room name, *not* the id.
#
# Commands:
# hubot secrets - Returns room name/id, API key and subdomain

secrets = [
  "My token is #{ process.env.HUBOT_CAMPFIRE_TOKEN }.",
  "I'm currently in room(s) #{ process.env.HUBOT_CAMPFIRE_ROOMS }, with a room name of #{ process.env.HUBOT_CAMPFIRE_ROOM_NAME }.",
  "The subdomain is #{ process.env.HUBOT_CAMPFIRE_ACCOUNT }."
  ]

module.exports = (robot) ->
  robot.respond /secrets/i, (msg) ->
    msg.send secrets.join('\n')
Something went wrong with that request. Please try again.