Make server monitoring optional

This commit is contained in:
syuilo 2018-08-25 12:05:44 +09:00
parent 851088bc79
commit 473738382b
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ type Config = {
apiUrl: string;
keywordEnabled: boolean;
reversiEnabled: boolean;
serverMonitoring: boolean;
mecab?: string;
};

View file

@ -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');