UNPKG

764 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const fs = require("fs");
4const configFilePath = `bot-tester.json`;
5const configFileExists = fs.existsSync(configFilePath);
6/**
7 * default value for timeout. If config/options are set to this value, no timeout will be used
8 */
9exports.NO_TIMEOUT = -1;
10let configInternal = {
11 timeout: exports.NO_TIMEOUT,
12 defaultAddress: {
13 channelId: 'console',
14 user: { id: 'user1', name: 'user1' },
15 bot: { id: 'bot', name: 'Bot' },
16 conversation: { id: 'user1Conversation' }
17 }
18};
19if (configFileExists) {
20 configInternal = JSON.parse(fs.readFileSync(configFilePath, { encoding: 'utf8' }));
21}
22exports.config = configInternal;
23//# sourceMappingURL=config.js.map
\No newline at end of file