ai/src/config.ts

21 lines
404 B
TypeScript

type Config = {
host: string;
i: string;
master?: string;
wsUrl: string;
apiUrl: string;
keywordEnabled: boolean;
reversiEnabled: boolean;
chartEnabled: boolean;
serverMonitoring: boolean;
mecab?: string;
mecabDic?: string;
};
const config = require('../config.json');
config.wsUrl = config.host.replace('http', 'ws');
config.apiUrl = config.host + '/api';
export default config as Config;