Skip to content

Instantly share code, notes, and snippets.

@lusis
Created May 10, 2014 03:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lusis/1cc0eeac4954c8430476 to your computer and use it in GitHub Desktop.
Save lusis/1cc0eeac4954c8430476 to your computer and use it in GitHub Desktop.
how I killed slack.md

Short answer:

Hubot saw a message from himself that he SHOULD have ignored.

Long answer:

  • hubot listens via irc to slack
  • hubot responds via webhooks to slack

Someone (PEAKSCALE!!!!) typed a standard thing we use all the time:

bugz XXXX

We have hubot configured explictly to ignore messages from himself. Actually he ignores himself via the IRC channel.

HUBOT_IRC_IGNORE_USERS="hubot,SLACK,HUBOTHOOKS"

I discovered this bug pretty early on. It's not a slack bug. It's just the nature of having to interact with slack over irc because private channels can't be used with the official hubot plugin. So we have a hybrid dealie.

Anyway the response from the webhook looks like this:

HubotHooks: Fogbugz XXXXX

So you can see what happened.

Now the question is if that's somehow coming across the irc channel DIFFERENTLY now that hubot saw it differently. We've been using this same hubot command ALL night and not had a problem until earlier.

In the interim I'm going to tighten that hubot regex up quite a bit and possibly implement some throttling on our side.

SORRY SLACK PEOPLE AND THE WHOLE DAMN WORLD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment