Skip to content

Instantly share code, notes, and snippets.

View scuthbert's full-sized avatar

Sam Cuthbertson scuthbert

View GitHub Profile
const https = require('https'),
qs = require('querystring'),
ACCESS_TOKEN = "ACCESS_TOKEN_FROM_SLACK",
VERIFICATION_TOKEN = "TOKEN_FROM_SLACK";
// Verify Url - https://api.slack.com/events/url_verification
function verify(data, callback) {
if (data.token === VERIFICATION_TOKEN) {
callback(null, data.challenge);
}

Keybase proof

I hereby claim:

  • I am scuthbert on github.
  • I am sammothe3 (https://keybase.io/sammothe3) on keybase.
  • I have a public key ASDUmlPAMIdCeSm1RDuArZIM-WAMjFyqS5lU9QWy64ldIAo

To claim this, I am signing this object: