<commit_before>var fs = require('fs')

console.log('writing config file...')
if (process.env.AXO_slackbot_config) {
  fs.writeFileSync('../config.json', process.env.AXO_slackbot_config)
}<commit_msg>Add varible options to storeConfig<commit_after>var fs = require('fs')

var config = {};

//set defaults
config.clientId = '82854487175.85597041971';
config.port = 4114;
config.axosoftClientId = "d4a4d398-2578-4cc7-a1cf-1b4a02330774"

if (process.env.NODE_ENV == 'development') {
config.redirectUri = 'devslackbot.axosoft.com:4114',
config.mongoUri = "mongodb://devslackbot.axosoft.com:27017/slackData"
}

if (process.env.NODE_ENV == 'production') {
config.redirectUri = 'slackbot.axosoft.com:4114',
config.mongoUri = "mongodb://slackbot.axosoft.com:27017/slackData"
}

if (process.env.AXO_slackbot_secret && process.env.AXO_slackbot_axosoft_secret) {
console.log('updating config file...')
    config.clientSecret = process.env.AXO_slackbot_secret;
    config.axosoftClientSecret = process.env.AXO_slackbot_axosoft_secret;
}

// write to file
console.log(config);
fs.writeFileSync('./config.json', JSON.stringify(config));
{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.058823529411764705, 'mean_word_length': 5.806060606060606, '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': '79749', 'n_tokens_mistral': 463, 'n_tokens_neox': 423, 'n_words': 57}