remove unused env var
This commit is contained in:
parent
21a15c5efc
commit
a323602a1d
@ -3,5 +3,6 @@ BOT_DISPLAY_NAME=
|
||||
BOT_USERNAME=
|
||||
BOT_PASSWORD=
|
||||
BOT_USERID=
|
||||
FACILITATOR_GROUP_ID=
|
||||
FACILITATOR_ROOM_ID=
|
||||
CHAT_OFFLINE_MESSAGE=
|
||||
CAPTURE_TRANSCRIPTS
|
@ -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;
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user