nautobot / nautobot-app-chatops

Extensible ChatOps Framework to enable other chatbots and the Nautobot chat command.
https://docs.nautobot.com/projects/chatops/en/latest/
Other
51 stars 34 forks source link

Bot replies are in a downloadable file called "files" - MatterMost #312

Closed waydh closed 1 month ago

waydh commented 7 months ago

Environment

Expected Behavior

Bot to reply in a text message, not with the text in a downloadable file called "files".

Observed Behavior

All bot responses are in a downloadable file called "files"

Steps to Reproduce

  1. Issue slash command
  2. Bot responds with a downloadable file called "files" which contains the text of the response.
  3. See the screenshot for more details.
smk4664 commented 7 months ago

This is due to Mattermost limitations in message response. Any table is uploaded as a snippet. This is the same with Slack, but small snippets in Slack are automatically rendered by Slack.

waydh commented 7 months ago

Thank you for your reply. That's unfortunate.

jvanderaa commented 7 months ago

@smk4664 should we look at some alternate methods to support just straight text?

smk4664 commented 7 months ago

We already support other methods, such as send_markdown. But many of the built-in commands such as get-devices were built using send_large_table which uses snippets.