Skip to content

Instantly share code, notes, and snippets.

@aawilson
aawilson / keybase.md
Last active July 29, 2016 22:57
keybase

Keybase proof

I hereby claim:

  • I am aawilson on github.
  • I am amw (https://keybase.io/amw) on keybase.
  • I have a public key ASDeV_MiuSdo_R08WMTS3VdrUlwYyZ825IgrQqU30HvZMQo

To claim this, I am signing this object:

@aawilson
aawilson / simple_autoaway.js
Last active December 18, 2015 14:49
Simple auto away message
var olarkTimeout = null;
olark('api.chat.onMessageToOperator', function(event) {
olarkTimeout = setTimeout(function(){
olark('api.chat.sendMessageToVisitor', {body: "It looks like the operator might be a little busy, hold on just a bit and we'll be right back with you!"});
}, 30 * 1000); // 30 seconds
});
olark('api.chat.onMessageToVisitor', function(event) {
if(olarkTimeout !== null){