lunarflu HF staff commited on
Commit
5a62739
·
verified ·
1 Parent(s): fa5ad29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -75,7 +75,7 @@ async def on_message(message):
75
  if bots_role not in message.author.roles: # bots shouldn't trigger pings for this
76
  content = message.content.lower()
77
  for trigger, slack_mention in TRIGGERS.items():
78
- if all(trigger in content for trigger in triggers):
79
  await post_to_slack(message.author, message.content, message.channel.name, message.jump_url, slack_mention, trigger)
80
  break
81
 
 
75
  if bots_role not in message.author.roles: # bots shouldn't trigger pings for this
76
  content = message.content.lower()
77
  for trigger, slack_mention in TRIGGERS.items():
78
+ if all(word in content for word in trigger):
79
  await post_to_slack(message.author, message.content, message.channel.name, message.jump_url, slack_mention, trigger)
80
  break
81