Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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(
|
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 |
|