<commit_before>'use strict';
if (!process.env.SLACK_TOKEN) {
  throw new Error('Error: Specify SLACK_TOKEN in environment');
}

const Botkit = require('botkit');
const controller = Botkit.slackbot({
  debug: false,
  require_delivery: true,
});
controller.spawn({
  token: process.env.SLACK_TOKEN
}).startRTM();

module.exports = controller;<commit_msg>Implement suggested security improvement<commit_after>'use strict';
if (!process.env.SLACK_TOKEN) {
  throw new Error('Error: Specify SLACK_TOKEN in environment');
}
if (!process.env.SLACK_CLIENT_ID) {
  throw new Error('Error: Specify SLACK_CLIENT_ID in environment');
}
if (!process.env.SLACK_CLIENT_SECRET) {
  throw new Error('Error: Specify SLACK_CLIENT_SECRET in environment');
}
if (!process.env.SLACK_SIGNING_SECRET) {
  throw new Error('Error: Specify SLACK_SIGNING_SECRET in environment');
}

const Botkit = require('botkit');

const options = {
  clientId: process.env.SLACK_CLIENT_ID,
  clientSecret: process.env.SLACK_CLIENT_SECRET,
  clientSigningSecret: process.env.SLACK_SIGNING_SECRET,
  debug: true,
  scopes: ['bot'],
};

const controller = Botkit.slackbot(options);
controller.spawn({
  token: process.env.SLACK_TOKEN
}).startRTM();

module.exports = controller;
{'fraction_non_alphanumeric': 0.12874493927125505, 'fraction_numerical': 0.0, 'mean_word_length': 6.144508670520231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3539425', 'n_tokens_mistral': 413, 'n_tokens_neox': 427, 'n_words': 91}