Skip to content

Instantly share code, notes, and snippets.

@jlord
Last active January 4, 2016 17:49
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 jlord/8656002 to your computer and use it in GitHub Desktop.
Save jlord/8656002 to your computer and use it in GitHub Desktop.
Using (gem) t to get DMs when your server goes down.

On your server, if you need to, isntall ruby1.9.1-dev:

apt-get install ruby1.9.1-dev

Then install t:

gem install t

Follow along @sferik's great readme on t to get keys from Twitter and authorize t.

I'm using mongroup on my server (which I got by using taco to deploy node apps via Git to the server) and once t was authorized, I added these bits to my mongroup.conf file and created a dm-error file. That was it!

Shoutout as always to @maxogden for the PRO-TIP:tm:

#!/usr/bin/env sh
t dm @jllord "reporobot went down"
on-error = ./dm-error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment