Reputation: 27114
In this minimal example :
app.message(/Foo/i, async ({ message,say }) => {
await say("Bar!")
})
app.message(/Snoo/i, async ({ message,say }) => {
await say("Reddit!")
})
Then oddly enough if I write in Slack :
Snoo
=> Reddit!
Foo
=> Bar!
Reddit!
It appears that the second app.message
automatically runs regardless if its message is called. Perhaps the namespace of say
is usurped by the former?
How can I isolate them?
Upvotes: 0
Views: 376