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