move offline messaging to chatbox
This commit is contained in:
parent
f7a9851b7d
commit
16c9fd4148
@ -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) {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user