An open API service indexing awesome lists of open source software.

https://github.com/valaksi/discord-command-controls

Reusable command catalog and policy helpers for Discord bots and dashboards.
https://github.com/valaksi/discord-command-controls

command-management dashboard discord discord-bot discordjs moderation permissions rbac typescript

Last synced: 13 days ago
JSON representation

Reusable command catalog and policy helpers for Discord bots and dashboards.

Awesome Lists containing this project

README

          

# discord-command-controls

![CI](https://github.com/valaksi/discord-command-controls/actions/workflows/ci.yml/badge.svg)
![MIT License](https://img.shields.io/badge/license-MIT-8fe3c7)

Reusable command catalog and policy helpers for Discord bots and admin dashboards.

This package extracts the command enable/disable and allow/deny policy logic into a small standalone TypeScript module so a bot runtime and a dashboard can share the same rules.

## What it gives you

- command catalog metadata
- per-command enable/disable switches
- role allow/deny lists
- channel allow/deny lists
- helpers to round-trip policy state through dashboard config JSON

## Install

```bash
npm install
```

## Test

```bash
npm test
npm run typecheck
```

## Maintenance

- Keep command metadata and policy targets in sync.
- Add tests when command policy behavior changes.
- Do not commit Discord tokens, guild IDs from private servers, webhook URLs, or dashboard secrets.

## Why this exists

The goal is to keep Discord command governance in one place instead of duplicating logic between the bot runtime and the admin UI.

## Author

Built and published by Valaksi.

## License

MIT