Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a version number footer to all Slack messages #2

Open
mfitz opened this issue Nov 15, 2023 · 0 comments
Open

Add a version number footer to all Slack messages #2

mfitz opened this issue Nov 15, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mfitz
Copy link
Owner

mfitz commented Nov 15, 2023

It would be nice to see which version of Slakkit is running. A footer on every Slack message would make this clear.

Appending a block of type context to the message blocks passed to the Slack API would do the trick (icon image URL will need to be added to the _version.py file). This would look something like:

{
    "type": "context",
    "elements": [
        {
            "type": "image",
            "image_url": _version.icon_url,
            "alt_text": "Slakkit icon"
        },
        {
            "type": "mrkdwn",
            "text": "Slakkit version: *{}*".format(_version.__version__)
        }
    ]
}
@mfitz mfitz added enhancement New feature or request good first issue Good for newcomers labels Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant