diff --git a/.env.sample b/.env.sample index 23b840b..cd488d2 100644 --- a/.env.sample +++ b/.env.sample @@ -3,5 +3,6 @@ BOT_DISPLAY_NAME= BOT_USERNAME= BOT_PASSWORD= BOT_USERID= +FACILITATOR_GROUP_ID= FACILITATOR_ROOM_ID= -CHAT_OFFLINE_MESSAGE= +CAPTURE_TRANSCRIPTS \ No newline at end of file diff --git a/src/bot.js b/src/bot.js index 84673bf..0e7c317 100644 --- a/src/bot.js +++ b/src/bot.js @@ -116,7 +116,7 @@ class OcrccBot { const user = this.client.getUser(memberId); if ( user && - (user.presence === "online" || user.presence === "unavailable") && + (user.presence === "online") && memberId !== this.config.BOT_USERID ) { chatOffline = false; diff --git a/src/index.js b/src/index.js index eedd890..5e808d3 100644 --- a/src/index.js +++ b/src/index.js @@ -13,7 +13,7 @@ const { BOT_DISPLAY_NAME, FACILITATOR_GROUP_ID, FACILITATOR_ROOM_ID, - CAPTURE_TRANSCRIPTS + CAPTURE_TRANSCRIPTS, } = process.env; const botConfig = { @@ -28,7 +28,7 @@ const botConfig = { BOT_DISPLAY_NAME, FACILITATOR_GROUP_ID, FACILITATOR_ROOM_ID, - CAPTURE_TRANSCRIPTS + CAPTURE_TRANSCRIPTS, } import OcrccBot from './bot'