From c877bcb92ab2c7f7c3e830a381471f5c129e8fdd Mon Sep 17 00:00:00 2001 From: harrellbm Date: Wed, 12 Oct 2022 12:19:19 -0500 Subject: [PATCH 1/2] update annoumcemnts file comment --- Projects/Social-Bots/TS/Bot-Modules/Announcements.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/Social-Bots/TS/Bot-Modules/Announcements.js b/Projects/Social-Bots/TS/Bot-Modules/Announcements.js index 419fe900de..3a28ae6a2a 100644 --- a/Projects/Social-Bots/TS/Bot-Modules/Announcements.js +++ b/Projects/Social-Bots/TS/Bot-Modules/Announcements.js @@ -44,7 +44,7 @@ exports.newSocialBotsBotModulesAnnouncements = function (processIndex) { let announcement = node.announcements[i] let canAnnounce = true - // Check configuration to see if Announcement should be run at Enter or Exit of Node + // Check configuration to see if Announcement should be run at Enter, Exit of Node, or Interval // set defaults, protect against empty configurations or missing values let onEnter = true let onExit = false From 13ebf684fe200ad58063301ffe5410510332eb5b Mon Sep 17 00:00:00 2001 From: harrellbm Date: Wed, 12 Oct 2022 12:22:22 -0500 Subject: [PATCH 2/2] Only need to define on interval --- Projects/Social-Bots/TS/Bot-Modules/Announcements.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Projects/Social-Bots/TS/Bot-Modules/Announcements.js b/Projects/Social-Bots/TS/Bot-Modules/Announcements.js index 3a28ae6a2a..1ff531bdff 100644 --- a/Projects/Social-Bots/TS/Bot-Modules/Announcements.js +++ b/Projects/Social-Bots/TS/Bot-Modules/Announcements.js @@ -61,6 +61,8 @@ exports.newSocialBotsBotModulesAnnouncements = function (processIndex) { announcement.config.onInterval ) intervalRunning = true + onEnter = false + onExit = false } } if (announcement.config.onEnter !== undefined) {