move offline messaging to chatbox

This commit is contained in:
Sharon Kennedy 2020-06-10 16:59:28 -04:00
parent f7a9851b7d
commit 16c9fd4148
2 changed files with 1 additions and 4 deletions

View File

@ -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) {

View File

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