ai/src/config.ts

17 lines
317 B
TypeScript
Raw Normal View History

2018-08-11 01:42:06 +00:00
type Config = {
host: string;
i: string;
wsUrl: string;
apiUrl: string;
2018-08-13 08:54:56 +00:00
keywordEnabled: boolean;
2018-08-11 01:42:06 +00:00
reversiEnabled: boolean;
2018-08-13 08:54:56 +00:00
mecabDic?: 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;