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) { if (chatOffline) {
logger.log('info', "NO FACILITATORS ONLINE") logger.log('info', "NO FACILITATORS ONLINE")
this.sendTextMessage(roomId, this.config.CHAT_OFFLINE_MESSAGE); this.sendNotice(roomId, "CHAT_OFFLINE")
this.sendNotice(roomId, "Chat is offline")
} }
} catch(err) { } catch(err) {

View File

@ -13,7 +13,6 @@ const {
BOT_DISPLAY_NAME, BOT_DISPLAY_NAME,
FACILITATOR_GROUP_ID, FACILITATOR_GROUP_ID,
FACILITATOR_ROOM_ID, FACILITATOR_ROOM_ID,
CHAT_OFFLINE_MESSAGE,
CAPTURE_TRANSCRIPTS CAPTURE_TRANSCRIPTS
} = process.env; } = process.env;
@ -29,7 +28,6 @@ const botConfig = {
BOT_DISPLAY_NAME, BOT_DISPLAY_NAME,
FACILITATOR_GROUP_ID, FACILITATOR_GROUP_ID,
FACILITATOR_ROOM_ID, FACILITATOR_ROOM_ID,
CHAT_OFFLINE_MESSAGE,
CAPTURE_TRANSCRIPTS CAPTURE_TRANSCRIPTS
} }