text: /**
   * Example for creating and working with the Slack RTM API.
   */
  
  /* eslint no-console:0 */
  
  var RtmClient = require('../lib/clients/rtm/client');
  var RTM_EVENTS = require('../lib/clients/events/rtm').EVENTS;
  
  var token = process.env.SLACK_API_TOKEN || '';
  
  var rtm = new RtmClient(token, { logLevel: 'debug' });
  rtm.start();
  
  rtm.on(RTM_EVENTS.MESSAGE, function handleRtmMessage(message) {
    console.log('Message:', message);
  });
  
  rtm.on(RTM_EVENTS.REACTION_ADDED, function handleRtmReactionAdded(reaction) {
    console.log('Reaction added:', reaction);
  });
  
  rtm.on(RTM_EVENTS.REACTION_REMOVED, function handleRtmReactionRemoved(reaction) {
    console.log('Reaction removed:', reaction);
  });
  