Skip to content

Commit

Permalink
Switch logic to if "rule.Respond" type
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Arnott committed Oct 25, 2024
1 parent 49172c1 commit 422d826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ func isValidHitChatRule(message *models.Message, rule models.Rule, processedInpu
message.Vars[name] = value
}

// If this wasn't a 'hear' rule, handle the args
if rule.Hear == "" && rule.ReactionsAdded == "" && rule.ReactionsRemoved == "" {
// If this is a "respond" type, handle args
if rule.Respond != "" {
// Get all the args that the message sender supplied
args := utils.RuleArgTokenizer(processedInput)

Expand Down

0 comments on commit 422d826

Please sign in to comment.