Skip to content
InledGroupPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

IssueBot

Discord bot running on Cloudflare Workers that connects Discord channels to GitHub Project Boards in the Inled-Pulsar-OS and InledGroup organizations.

IssueBot is only the Discord bot: it runs stateless as a Discord Interactions webhook. There is no web panel, no public admin API and no stored data. Command registration is done locally with a script and your bot token.

Supported Project Boards:


Commands and Usage

1. Interactive UI and Form Modals

Users can interact with IssueBot without typing syntax by clicking the inline buttons attached to bot responses:

  • Pulsar (All) / InledGroup: Filter and display open issues from the selected board.
  • Errors / Ideas / Help: Filter issues by category.
  • New Issue Button: Opens a Discord modal form with fields for Organization, Type, Title, and Description.
  • Comment Button: Opens a modal form to submit comments on any open issue number.
  • Close Issue Button: Opens a modal form to close an issue with an optional reason.
  • Help Button: Displays the interactive control center and command guide.

2. Slash Commands

/issue help                      Show the interactive guide and buttons
/issue view [org] [type]         List open issues from a board
/issue create <title> <org> <type> [details]
/issue comment <number> <message>
/issue close <number> [reason]
/help                            Interactive guide
/panel                           Post the button panel in the current channel

Every member of the server can use them: they are registered with default_member_permissions: "0", so no special role or administrator permission is required.


Registering the slash commands

Command registration needs the bot token, so it runs locally, never from the deployed Worker:

# Commands available in every server the bot is in (may take up to 1 hour to appear)
DISCORD_BOT_TOKEN="..." node scripts/register-commands.mjs

# Faster: commands only in your own server, visible immediately to all members
DISCORD_BOT_TOKEN="..." node scripts/register-commands.mjs --guild=<SERVER_ID>

The token can also be placed in .dev.vars as DISCORD_BOT_TOKEN=... (and optionally GUILD_ID=...), which the script reads automatically.

If members still cannot see the commands after registering:

  1. Re-invite the bot with both scopes bot and applications.commands.
  2. In Discord: Server Settings → Integrations → IssueBot and make sure no per-command permission override restricts it to administrators.
  3. If it was previously installed with restricted command permissions, remove and re-add the integration after registering with default_member_permissions: "0".

Configuration and Secrets

# Discord bot token
npx wrangler secret put DISCORD_BOT_TOKEN

# GitHub token with project and repo scopes
npx wrangler secret put GITHUB_TOKEN

# Optional: avoids the extra API call to resolve the application public key
npx wrangler secret put DISCORD_PUBLIC_KEY

The Worker URL configured as Interactions Endpoint URL in the Discord Developer Portal must point to the Worker root (https://<worker>.workers.dev/).


Deployment

  1. Install dependencies:

    npm install
  2. Deploy the Worker:

    npm run deploy
  3. Check the logs:

    npx wrangler tail

License

MIT - InledGroup

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages