ai/src/config.ts
L̷O̷N̷D̷O̷N̷少林 82b6363593
config.ts
2025-01-21 08:38:50 -05:00

32 lines
764 B
TypeScript

type Config = {
host: string;
serverName?: string;
i: string;
master?: string;
wsUrl: string;
apiUrl: string;
keywordEnabled: boolean;
reversiEnabled: boolean;
notingEnabled: boolean;
colorNotesEnabled: boolean;
chartEnabled: boolean;
serverMonitoring: boolean;
checkEmojisEnabled?: boolean;
checkEmojisAtOnce?: boolean;
geminiProApiKey?: string;
pLaMoApiKey?: string;
prompt?: string;
aichatRandomTalkEnabled?: string;
aichatRandomTalkProbability?: string;
aichatRandomTalkIntervalMinutes?: string;
mecab?: string;
mecabDic?: string;
memoryDir?: string;
};
import config from '../config.json' with { type: 'json' };
config.wsUrl = config.host.replace('http', 'ws');
config.apiUrl = config.host + '/api';
export default config as Config;