Skip to content

Commit

Permalink
[#13]
Browse files Browse the repository at this point in the history
Feature: Improve Logging
  • Loading branch information
adamhorden committed Aug 20, 2021
1 parent d26fd12 commit 28ca93c
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lib/bot.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { RtmClient } from '@slack/rtm-api';
import { WebClient } from '@slack/web-api';

import { emojis } from '../assets/emoji.json';
import { _ } from 'lodash';
import { irc } from 'irc-upd';
import { logger } from './logger';

import _ from 'lodash';
import irc from 'irc-upd';
import { MemoryDataStore, RtmClient, WebClient } from '@slack/client';
import { ConfigurationError } from './errors';

import { emojis } from '../assets/emoji.json';
import { validateChannelMapping } from './validators';
import { highlightUsername } from './helpers';

Expand All @@ -29,8 +25,7 @@ class Bot {
validateChannelMapping(options.channelMapping);

const web = new WebClient(options.token);
const rtm = new RtmClient(options.token);

const rtm = new RtmClient(options.token, { dataStore: new MemoryDataStore() });
this.slack = { web, rtm };

this.server = options.server;
Expand Down

0 comments on commit 28ca93c

Please sign in to comment.