mirror of
https://github.com/syuilo/ai.git
synced 2024-11-24 22:01:07 +00:00
Make server monitoring optional
This commit is contained in:
parent
851088bc79
commit
473738382b
|
@ -5,6 +5,7 @@ type Config = {
|
|||
apiUrl: string;
|
||||
keywordEnabled: boolean;
|
||||
reversiEnabled: boolean;
|
||||
serverMonitoring: boolean;
|
||||
mecab?: string;
|
||||
};
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@ promiseRetry(retry => {
|
|||
ai.install(new EmojiModule());
|
||||
ai.install(new FortuneModule());
|
||||
ai.install(new GuessingGameModule());
|
||||
ai.install(new ServerModule());
|
||||
ai.install(new ReversiModule());
|
||||
ai.install(new TimerModule());
|
||||
if (config.serverMonitoring) ai.install(new ServerModule());
|
||||
if (config.keywordEnabled) ai.install(new KeywordModule());
|
||||
|
||||
console.log('ai started');
|
||||
|
|
Loading…
Reference in a new issue