{"id":15714280,"url":"https://github.com/slackapi/deno-metadata-event","last_synced_at":"2025-04-04T04:18:34.621Z","repository":{"id":44751562,"uuid":"428584517","full_name":"slackapi/deno-metadata-event","owner":"slackapi","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-26T22:55:54.000Z","size":35,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-09T15:41:49.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slackapi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-16T09:00:52.000Z","updated_at":"2022-06-11T01:03:33.000Z","dependencies_parsed_at":"2022-09-23T11:51:30.528Z","dependency_job_id":null,"html_url":"https://github.com/slackapi/deno-metadata-event","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slackapi%2Fdeno-metadata-event","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slackapi%2Fdeno-metadata-event/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slackapi%2Fdeno-metadata-event/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slackapi%2Fdeno-metadata-event/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slackapi","download_url":"https://codeload.github.com/slackapi/deno-metadata-event/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117761,"owners_count":20886439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-03T21:35:49.779Z","updated_at":"2025-04-04T04:18:34.592Z","avatar_url":"https://github.com/slackapi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Message Metadata Event Sample\n\nPlease follow the tutorial for this repo at https://api.slack.com/tutorials/tracks/metadata-event.\n\nThis sample project shows how to send and receive message metadata events.\n\n## Setup\n\nCreate a new project using this as repo as a template.\n\n```bash\nslack create -t slackapi/deno-metadata-event \n```\n\nYou must update the Slack Channel ID for the `ReceiveMetadataEvent` trigger:\n1. Open `triggers/receive_metadata_event.ts`\n1. Update `CHANNEL_ID` to the channel where your app will be run\n\nOptionally, you can customize the name of your message metadata event to avoid conflicts with other apps that use the same event name:\n1. Open `functions/send_metadata_event.ts`\n1. Update `MESSAGE_METADATA_EVENT_TYPE` to whatever your heart desires\n\n## Running it locally\n\n```bash\nslack run\n```\n\n## Deploying to Slack's Hosting\n\n```bash\nslack deploy\n```\n\n## Testing\n\n```bash\nslack deno test\n```\n\n## Bundling\nTo bundle to stdout:\n\n```bash\ndeno --unstable bundle .slack/run.ts\n```\n\nTo bundle using the \"hook\", this required a path to a directory to package into that is expected to be used to zip for the deployment package:\n(note /tmp/some-dir needs to exist!)\n```\n.slack/hooks/package /tmp/some-dir\n```\n\nThe packaged zip file that is deployed should contain a single file named `bundle.js`. You might bundle and build that like this:\n```\nrm -rf ./package ./dist \\\n  \u0026\u0026 mkdir ./package ./dist \\\n  \u0026\u0026 deno --unstable bundle .slack/run.ts \u003e ./package/bundle.js \\\n  \u0026\u0026 cd ./package \\\n  \u0026\u0026 zip -m ../dist/package.zip ./* \\\n  \u0026\u0026 cd .. \\\n  \u0026\u0026 rm -rf ../package \\\n  \u0026\u0026 echo \"\\n👋 Oh, hi there. The deployment zip is in ./dist/package.zip\"\n```\n\n## Manifest and Slack.yaml\nTo generate a manifest:\n```\ndeno --unstable run .slack/manifest.ts \u003e manifest.json\n```\n\nTo generate a slack.yaml file (yaml encoding of manifest):\n```\ndeno --unstable run .slack/slack_yaml.ts \u003e slack.yaml\n```\n\nTo use the `manifest` hook to create a slack.yaml file in the project root:\n```\n.slack/hooks/manifest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslackapi%2Fdeno-metadata-event","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslackapi%2Fdeno-metadata-event","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslackapi%2Fdeno-metadata-event/lists"}