|
|
@@ -19,7 +19,6 @@ class SlackBotService extends S2sMessageHandlable {
|
|
|
this.client = null;
|
|
|
this.searchService = null;
|
|
|
|
|
|
- this.isSetupSlackBot = false;
|
|
|
this.isConnectedToSlack = false;
|
|
|
|
|
|
this.lastLoadedAt = null;
|
|
|
@@ -28,14 +27,12 @@ class SlackBotService extends S2sMessageHandlable {
|
|
|
}
|
|
|
|
|
|
async initialize() {
|
|
|
- this.isSetupSlackBot = false;
|
|
|
this.isConnectedToSlack = false;
|
|
|
const token = this.crowi.configManager.getConfig('crowi', 'slackbot:token');
|
|
|
|
|
|
if (token != null) {
|
|
|
this.client = new WebClient(token, { logLevel: LogLevel.DEBUG });
|
|
|
logger.debug('SlackBot: setup is done');
|
|
|
- this.isSetupSlackBot = true;
|
|
|
await this.sendAuthTest();
|
|
|
}
|
|
|
|