poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Regex Triggers for Cards? #152

Open mgeorgebrown89 opened 5 years ago

mgeorgebrown89 commented 5 years ago

I wanted to use the regex trigger functionality to watch for other slack integrations, like DataDog, but it seems like it won't match things the are in cards, only text responses. Is this true? If so, I guess maybe this is a feature request?

devblackops commented 5 years ago

We'll have to see how we can handle parsing messages from other bots. Currently, messages of type bot_message are ignored. https://github.com/poshbotio/PoshBot/blob/master/PoshBot/Implementations/Slack/SlackBackend.ps1#L206

If you manually send a message with PSSlack using a webhook URL, they will be received as bot_message in the websocket connection and will be dropped in the backend ReceiveMessage() method. I'm guessing (haven't validated) that other integrations (DataDog) would come in as this type as well.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.