View bb-http-headers
bb-slackaccesstoken // Slack user token for user who added your Slack App
bb-slackuserid // User Id of the user who added your Slack App
bb-slackbotaccesstoken // Bot access token if the app uses a bot
bb-slackbotuserid // User Id of bot user if the app uses a bot
bb-slackbotusername // Username of the bot user
bb-slackteamid // Slack team Id
bb-slackteamname // Slack team name
bb-slackteamdomain // Slack Domain name of the team
View slapp-intro-convo.js
// convo handlers are registered with unique strings
const handleGoodDay = 'handleGoodDay'
// handle any DM that starts with 'hi'
slapp.message('^hi', 'direct_message', (msg) => {
// Ask how they are and route next message to handleGoodDay handler
msg.say('Are you having a good day?').route(handleGoodDay)
// register handleGoodDay handler
View bot.js
var Botkit = require('botkit')
var controller = Botkit.slackbot()
controller.hears('hello', ['direct_message', 'direct_mention', 'mention'], function (bot, message) {
bot.reply(message, 'Hello!')
# takes a directory as the first argument and loops through all of the jpg
# images watermarking them into a watermark folder within that directory.
mkdir -p $1/watermark
for filename in $DIRECTORY/*
View witbot.js
var controller = Botkit.slackbot({ debug: false })
controller.hears('.*', 'direct_message,direct_mention', function (bot, message) {
witbot.process(message.text, bot, message)
witbot.hears('hello', 0.5, function (bot, message, outcome) {
bot.reply(message, 'Hello to you as well!')
View bot.yml
name: Domination Bot
description: A Bot to rule them all
avatar: avatar.jpg
- name: AWS_REGION
friendly_name: AWS Region
info: Region of deployment (e.g. us-eas-1)
default: us-east-1
type: text
global: true
View log.go
package utils
import (
// DecorateRuntimeContext appends line, file and function context to the logger
func DecorateRuntimeContext(logger *logrus.Entry) *logrus.Entry {
View gist:024f7f76c9f42f53449f
2015-07-17T17:17:31Z [INFO] Starting Agent: Amazon ECS Agent - v1.2.1 (5da1555)
2015-07-17T17:17:31Z [INFO] Loading configuration
2015-07-17T17:17:31Z [INFO] Checkpointing is enabled. Attempting to load state
2015-07-17T17:17:31Z [INFO] Loading state! module="statemanager"
2015-07-17T17:17:31Z [INFO] Registering Instance with ECS
2015-07-17T17:17:36Z [ERROR] Could not register module="api client" err="Post net/http: request canceled while waiting for connection"
2015-07-17T17:17:36Z [ERROR] Error registering: Post net/http: request canceled while waiting for connection

Keybase proof

I hereby claim:

  • I am mbrevoort on github.
  • I am mbrevoort ( on keybase.
  • I have a public key whose fingerprint is B2EC 5017 FDF9 8550 6F39 D6EF 007F CB86 C97D EE6D

To claim this, I am signing this object:

View gist:dcdbbb4e2d5b2f62f407
- redis
- docker
PROJECT_NAME: <your-project>