{"id":26197871,"url":"https://github.com/paulden/meugnon-mattermost-slash-command","last_synced_at":"2026-04-07T23:31:29.000Z","repository":{"id":111746663,"uuid":"530304208","full_name":"paulden/meugnon-mattermost-slash-command","owner":"paulden","description":"Meugnon API for Mattermost Slash command","archived":false,"fork":false,"pushed_at":"2022-08-30T12:05:59.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T09:26:03.312Z","etag":null,"topics":["docker","docker-compose","flask","mattermost","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-29T16:34:28.000Z","updated_at":"2024-04-09T14:09:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"289a4f1b-038d-4078-ad53-e03471c7fbe8","html_url":"https://github.com/paulden/meugnon-mattermost-slash-command","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paulden/meugnon-mattermost-slash-command","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulden%2Fmeugnon-mattermost-slash-command","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulden%2Fmeugnon-mattermost-slash-command/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulden%2Fmeugnon-mattermost-slash-command/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulden%2Fmeugnon-mattermost-slash-command/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulden","download_url":"https://codeload.github.com/paulden/meugnon-mattermost-slash-command/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulden%2Fmeugnon-mattermost-slash-command/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31533823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","flask","mattermost","python"],"created_at":"2025-03-12T02:49:09.934Z","updated_at":"2026-04-07T23:31:28.991Z","avatar_url":"https://github.com/paulden.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mattermost Meugnon slash command\n\n![fly.io deploy](https://github.com/paulden/meugnon-mattermost-slash-command/actions/workflows/main.yml/badge.svg)\n\nSimple Flask API returning meugnons links (courtesy of Imgur) to setup a Mattermost Slash command.\n\n## Run locally\n\n- Generate an Imgur client ID (you need an account) here: https://api.imgur.com/oauth2/addclient\n- (optional) Generate a Mattermost token when registering your Slash command.\n- Run using Docker, in standalone mode or with docker-compose if you want to start a local Mattermost instance.\n\n### Using Docker\n\n- Build and run API:\n\n```\n$ docker build -t meugnon-api .\n$ docker run -e IMGUR_CLIENT_ID=\u003cyour-token\u003e -p 8000 meugnon-api\n$ curl localhost:8000/healthz      \n{\n  \"message\": \"Tutto bene!\"\n}\n```\n\n### Standalone\n\n- Create a `.env` file with the Mattermost tokens and the Imgur client ID as described in `.env.template` (if the\n`MATTERMOST_TOKENS` is empty or not set, token validation will be skipped)\n- Install required Python dependencies with a tool such as `virtualenv`:\n\n```\n$ virtualenv ./venv -p python3.8\n$ source venv/bin/active\n$ pip install -r requirements.txt\n```\n\n- Run and test API is up\n\n```\n$ python run.py\n$ curl localhost:8000/healthz      \n{\n  \"message\": \"Tutto bene!\"\n}\n$ curl localhost:8000                              \n{\n  \"response_type\": \"in_channel\", \n  \"text\": \"https://i.imgur.com/DPVf0HB.jpg\"\n}\n\n```\n\n### Run with docker-compose using a local Mattermost instance\n\nBased on https://github.com/mattermost/mattermost-bot-sample-golang\n\n- Start containers with `docker-compose up`.\n- Run script to add users with `./add_users.sh`.\n- Go to your local Mattermost instance on http://localhost:8065 and log in with `bill@example.com` / `Password1.`.\n- Create a test team and authorize untrusted connections to your API by going to `System console \u003e Environment \u003e Developer`\nand adding `meugnon-api_meugnon_1` in `Allow untrusted internal connections to`.\n- Enable link preview to easily get your meugnonnerie in `System Console \u003e Site Configuration \u003e Posts \u003e Enable website link previews`.\n- Create your Slash command on `Integrations \u003e Slash Commands \u003e Add Slash Commands` and set request method to `GET`, and\nrequest URL to `http://meugnon-api_meugnon_1:8000` (rest is your choice).\n\n## TODO\n\n- Tests\n- Filter out MP4 links (not previewed in Mattermost :( )\n- Build \"cache\" object with links to avoid useless calls to API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulden%2Fmeugnon-mattermost-slash-command","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulden%2Fmeugnon-mattermost-slash-command","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulden%2Fmeugnon-mattermost-slash-command/lists"}