From 16c9fd414849467426d5a22ddb9a053ce67fa63a Mon Sep 17 00:00:00 2001 From: Sharon Kennedy Date: Wed, 10 Jun 2020 16:59:28 -0400 Subject: [PATCH] move offline messaging to chatbox --- src/bot.js | 3 +-- src/index.js | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/bot.js b/src/bot.js index 82c9046..efe5da1 100644 --- a/src/bot.js +++ b/src/bot.js @@ -126,8 +126,7 @@ class OcrccBot { if (chatOffline) { logger.log('info', "NO FACILITATORS ONLINE") - this.sendTextMessage(roomId, this.config.CHAT_OFFLINE_MESSAGE); - this.sendNotice(roomId, "Chat is offline") + this.sendNotice(roomId, "CHAT_OFFLINE") } } catch(err) { diff --git a/src/index.js b/src/index.js index 1a4d72b..eedd890 100644 --- a/src/index.js +++ b/src/index.js @@ -13,7 +13,6 @@ const { BOT_DISPLAY_NAME, FACILITATOR_GROUP_ID, FACILITATOR_ROOM_ID, - CHAT_OFFLINE_MESSAGE, CAPTURE_TRANSCRIPTS } = process.env; @@ -29,7 +28,6 @@ const botConfig = { BOT_DISPLAY_NAME, FACILITATOR_GROUP_ID, FACILITATOR_ROOM_ID, - CHAT_OFFLINE_MESSAGE, CAPTURE_TRANSCRIPTS }