Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rinma on github.
  • I am rinma (https://keybase.io/rinma) on keybase.
  • I have a public key ASBfvkAluK2nHXlGRZdbU69EDTdPynCJdEU7dKtvJOsBDAo

To claim this, I am signing this object:

@Rinma
Rinma / app.js
Created October 3, 2017 18:16
Slack Bot
const RtmClient = require('@slack/client').RtmClient;
const MemoryDataStore = require('@slack/client').MemoryDataStore;
const RTM_EVENTS = require('@slack/client').RTM_EVENTS;
const token = process.env.SLACK_TOKEN || '';
const rtm = new RtmClient(token, {
logLevel: 'error',
// logLevel: 'debug',
// Initialise a data store for our client, this will load additional helper functions for the storing and retrieval of data
dataStore: new MemoryDataStore(),