跳到正文
文章入门

用 Workers 构建 Slack 机器人

在 Cloudflare Workers 上用 Hono 和 TypeScript 构建 Slack 机器人:推送 GitHub Issue 更新,并通过斜杠命令查询 Issue。

最近更新
2026年4月8日
阅读原文

该介绍目前仅提供英文版本。

Your bot receives GitHub webhooks and posts a message to a Slack channel whenever an issue is created or updated, and lets people look up GitHub issues from inside Slack with a command. It’s written in TypeScript with the Hono framework.

What you’ll learn

  • Set up a Slack app and incoming webhooks
  • Handle GitHub webhooks in a Worker
  • Add a slash command that looks up issues
  • Deploy the bot

Cloudflare products used

Workers.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

继续学习