remove unused env var

This commit is contained in:
Sharon Kennedy 2020-06-11 09:43:20 -04:00
parent 21a15c5efc
commit a323602a1d
3 changed files with 5 additions and 4 deletions

View File

@ -3,5 +3,6 @@ BOT_DISPLAY_NAME=
BOT_USERNAME=
BOT_PASSWORD=
BOT_USERID=
FACILITATOR_GROUP_ID=
FACILITATOR_ROOM_ID=
CHAT_OFFLINE_MESSAGE=
CAPTURE_TRANSCRIPTS

View File

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

View File

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