ai/src/config.ts
2018-08-28 09:12:59 +09:00

17 lines
314 B
TypeScript

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