{"id":18251746,"url":"https://github.com/moqada/sample-slack-bot","last_synced_at":"2026-04-29T10:01:24.429Z","repository":{"id":233401377,"uuid":"606720096","full_name":"moqada/sample-slack-bot","owner":"moqada","description":"Sample Slack Bot that works on the Slack Next-gen platform","archived":false,"fork":false,"pushed_at":"2024-04-01T17:55:39.000Z","size":496,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T00:56:04.277Z","etag":null,"topics":["deno","slack-bot"],"latest_commit_sha":null,"homepage":"","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/moqada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-02-26T11:12:33.000Z","updated_at":"2023-04-04T19:34:31.000Z","dependencies_parsed_at":"2024-04-16T03:43:45.751Z","dependency_job_id":"d87096c3-6c42-4927-84e5-bd3b1f0ad7e0","html_url":"https://github.com/moqada/sample-slack-bot","commit_stats":null,"previous_names":["moqada/sample-slack-bot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moqada/sample-slack-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqada%2Fsample-slack-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqada%2Fsample-slack-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqada%2Fsample-slack-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqada%2Fsample-slack-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moqada","download_url":"https://codeload.github.com/moqada/sample-slack-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moqada%2Fsample-slack-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["deno","slack-bot"],"created_at":"2024-11-05T09:48:23.886Z","updated_at":"2026-04-29T10:01:24.388Z","avatar_url":"https://github.com/moqada.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample Slack Bot\n\nThe sample of the generic Slack Bot that works on\n[the Slack Next-gen platform](https://api.slack.com/future).\n\n![](assets/preview.png)\n\n**Guide Outline**:\n\n- [Setup](#setup)\n  - [Install the Slack CLI](#install-the-slack-cli)\n  - [Set Environment Variables](#set-environment-variables)\n- [Running Your Project Locally](#running-your-project-locally)\n- [Testing](#testing)\n- [Deploying Your App](#deploying-your-app)\n  - [Viewing Activity Logs](#viewing-activity-logs)\n- [Project Structure](#project-structure)\n- [Resources](#resources)\n\n---\n\n## Setup\n\nBefore getting started, make sure you have a development workspace where you\nhave permissions to install apps. If you don’t have one set up, go ahead and\n[create one](https://slack.com/create). Also, please note that the workspace\nrequires any of [the Slack paid plans](https://slack.com/pricing).\n\n### Install the Slack CLI\n\nTo use this, you first need to install and configure the Slack CLI. Step-by-step\ninstructions can be found in our\n[Quickstart Guide](https://api.slack.com/future/quickstart).\n\n### Set Environment Variables\n\n[`bot/mention/google_image.ts`](bot/mention/google_image.ts) need the\nenvironment variables.\n\nYou should get some variables from\n[Google Custom Search API](https://developers.google.com/custom-search/docs/overview),\nand you need to create the following `.env` file.\n\n```\nGOOGLE_CSE_ID=XXXXXXXXXXXXXXXXXXXXXX\nGOOGLE_CSE_KEY=YYYYYYYYYYYYYYYYYYYY\n```\n\n## Running Your Project Locally\n\nWhile building your app, you can see your changes propagated to your workspace\nin real-time with `slack run`. In both the CLI and in Slack, you'll know an app\nis the development version if the name has the string `(dev)` appended.\n\n```zsh\n# Run app locally\n$ slack run\n\nConnected, awaiting events\n```\n\nTo stop running locally, press `\u003cCTRL\u003e + C` to end the process.\n\nAfter running, you can see a question about the trigger then you choose\n`triggers/configure_bot.ts`.\n\n```\n? Choose a trigger definition file: triggers/configure_bot.ts\n```\n\nOr you can run the below command.\n\n```zsh\nslack trigger create --trigger-def triggers/configure_bot.ts\n```\n\nAs a result, you can get the link trigger Shortcut URL. Copy and paste this URL\ninto a channel as a message. After that, you follow the instruction in the modal\nthen you can set up the necessary workflows.\n\n## Testing\n\nTest filenames should be suffixed with `_test`. Run all tests with `deno test`:\n\n```zsh\n$ deno test\n```\n\n## Deploying Your App\n\nOnce you're done with development, you can deploy the production version of your\napp to Slack hosting using `slack deploy`:\n\n```zsh\n$ slack deploy\n```\n\nAfter deploying, create new link triggers for the production version of your app\n(not appended with `(dev)`). Once the triggers are invoked, the associated\nworkflows should run just as they did when developing locally.\n\n### Viewing Activity Logs\n\nActivity logs for the production instance of your application can be viewed with\nthe `slack activity` command:\n\n```zsh\n$ slack activity\n```\n\n## Project Structure\n\n### `manifest.ts`\n\nThe [app manifest](https://api.slack.com/future/manifest) contains the app's\nconfiguration. This file defines attributes like app name and description.\n\n### `slack.json`\n\nUsed by the CLI to interact with the project's SDK dependencies. It contains\nscript hooks that are executed by the CLI and implemented by the SDK.\n\n### `/bot`\n\nThe main logics of the bot. You can implement some event handlers (ex.\n`mention`, `message`, `reaction`).\n\n### `/functions`\n\n[Functions](https://api.slack.com/future/functions) are reusable building blocks\nof automation that accept inputs, perform calculations, and provide outputs.\nFunctions can be used independently or as steps in workflows.\n\n### `/workflows`\n\nA [workflow](https://api.slack.com/future/workflows) is a set of steps that are\nexecuted in order. Each step in a workflow is a function.\n\nWorkflows can be configured to run without user input or they can collect input\nby beginning with a [form](https://api.slack.com/future/forms) before continuing\nto the next step.\n\n### `/triggers`\n\n[Triggers](https://api.slack.com/future/triggers) determine when workflows are\nexecuted. A trigger file describes a scenario in which a workflow should be run,\nsuch as a user pressing a button or when a specific event occurs.\n\n## Resources\n\nTo learn more about developing with the CLI, you can visit the following guides:\n\n- [Creating a new app with the CLI](https://api.slack.com/future/create)\n- [Configuring your app](https://api.slack.com/future/manifest)\n- [Developing locally](https://api.slack.com/future/run)\n\nTo view all documentation and guides available, visit the\n[Overview page](https://api.slack.com/future/overview).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoqada%2Fsample-slack-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoqada%2Fsample-slack-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoqada%2Fsample-slack-bot/lists"}