From cef8acad0cb7473b9191878b388cba60670ed395 Mon Sep 17 00:00:00 2001 From: Sharon Kennedy Date: Thu, 26 Mar 2020 19:15:16 -0400 Subject: [PATCH] remove log statements --- src/bot.js | 9 +++------ ... 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt | 5 +++++ 2 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 transcripts/20 Mar 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt diff --git a/src/bot.js b/src/bot.js index 5316a4c..f1e4168 100644 --- a/src/bot.js +++ b/src/bot.js @@ -269,7 +269,9 @@ class OcrccBot { } sendTranscript(senderId, roomId) { - const transcriptFile = this.activeChatrooms[roomId].transcriptFile; + const transcriptFile = this.activeChatrooms[roomId] + ? this.activeChatrooms[roomId].transcriptFile + : false; if (!transcriptFile) { this.sendTextMessage( roomId, @@ -440,11 +442,6 @@ class OcrccBot { }); // unencrypted messages this.client.on("Room.timeline", (event, room, toStartOfTimeline) => { - if (event.getType() === "m.room.message") { - logger.log("info", event); - logger.log("info", this.client.isCryptoEnabled()); - logger.log("info", event.isEncrypted()); - } if (event.getType() === "m.room.message" && !event.isEncrypted()) { this.handleMessageEvent(event); } diff --git a/transcripts/20 Mar 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt b/transcripts/20 Mar 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt new file mode 100644 index 0000000..1646ecb --- /dev/null +++ b/transcripts/20 Mar 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt @@ -0,0 +1,5 @@ +@help-bot:rhok.space [17:39:36]: Facilitator Demo Account has joined the chat. +@ocrcc-facilitator-demo:rhok.space [17:39:48]: heyooo +@help-bot:rhok.space [17:41:13]: Bleep bloop +@help-bot:rhok.space [17:41:21]: 20 Mar 2020 - 17:39:35 - !HyOQxerRxiwlUBolJA:rhok.space.txt +@95326bf0-cd5e-45d7-be64-cb413d37d929:rhok.space [17:42:01]: hi