Skip to content

Commit

Permalink
Merge pull request #4385 from harrellbm/develop
Browse files Browse the repository at this point in the history
Announcement node only need to define onInterval property when using
  • Loading branch information
harrellbm authored Oct 12, 2022
2 parents fa2d114 + 13ebf68 commit 9cda25e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Projects/Social-Bots/TS/Bot-Modules/Announcements.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -61,6 +61,8 @@ exports.newSocialBotsBotModulesAnnouncements = function (processIndex) {
announcement.config.onInterval
)
intervalRunning = true
onEnter = false
onExit = false
}
}
if (announcement.config.onEnter !== undefined) {
Expand Down

0 comments on commit 9cda25e

Please sign in to comment.