Hi @jrock2004,
Potentially you could try to look for "slack.com" in the URL string,
What most integrations do is have a mode or setting for Mattermost where you can take advantage of what it can do beyond Slack, e.g. when you enter the URL you just manually set a flag to indicate it's Mattermost.
Does this help?