ai/src/config.ts

23 lines
451 B
TypeScript
Raw Normal View History

2018-08-11 01:42:06 +00:00
type Config = {
host: string;
i: string;
2020-09-12 10:46:33 +00:00
master?: string;
2018-08-11 01:42:06 +00:00
wsUrl: string;
apiUrl: string;
2018-08-13 08:54:56 +00:00
keywordEnabled: boolean;
2018-08-11 01:42:06 +00:00
reversiEnabled: boolean;
notingEnabled: boolean;
2019-06-15 14:49:11 +00:00
chartEnabled: boolean;
serverMonitoring: boolean;
2018-08-13 09:17:38 +00:00
mecab?: string;
mecabDic?: string;
memoryPath?: string;
2018-08-11 01:42:06 +00:00
};
const config = require('../config.json');
config.wsUrl = config.host.replace('http', 'ws');
config.apiUrl = config.host + '/api';
export default config as Config;