mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 05:17:23 +09: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…
x
Reference in New Issue
Block a user