|
1 | 1 | <div align="center"> |
2 | 2 |
|
3 | | -# 📚 Advanced Discord Bot Slash Command Documentation |
| 3 | +# 📚 Advanced Discord Bot Documentation |
4 | 4 |
|
5 | | -Official command reference for **Advanced Discord Bot (ADB)**. |
| 5 | +How commands work in **Advanced Discord Bot (ADB)**. |
6 | 6 |
|
7 | 7 | </div> |
8 | 8 |
|
9 | 9 | --- |
10 | 10 |
|
11 | | -## 💰 Economy Commands |
12 | | - |
13 | | -| Command | Description | Usage | |
14 | | -|--------|-------------|-------| |
15 | | -| `/bal [user]` | Check wallet and bank balance. | `/bal` | |
16 | | -| `/buy <item>` | Buy a role from the shop. | `/buy PremiumRole` | |
17 | | -| `/coinflip <bet> <choice>` | Flip a coin and gamble coins. | `/coinflip 100 heads` | |
18 | | -| `/collect` | Collect income from purchased roles. | `/collect` | |
19 | | -| `/deposit <amount \| all>` | Deposit coins into the bank. | `/deposit all` | |
20 | | -| `/diceroll <bet> <number>` | Roll a die and bet on a number. | `/diceroll 50 4` | |
21 | | -| `/economy-setup [options]` | Configure economy settings. Admin only. | `/economy-setup` | |
22 | | -| `/give <recipient> <amount>` | Give coins to another user. | `/give @user 100` | |
23 | | -| `/leaderboard` | Show the richest users. | `/leaderboard` | |
24 | | -| `/shop` | Display roles available for purchase. | `/shop` | |
25 | | -| `/shop-admin <subcommand> [options]` | Manage the role shop. Admin only. | `/shop-admin add PremiumRole` | |
26 | | -| `/steal <victim>` | Attempt to steal coins. | `/steal @user` | |
27 | | -| `/withdraw <amount \| all>` | Withdraw coins into wallet. | `/withdraw 200` | |
28 | | -| `/work` | Work to earn coins. | `/work` | |
| 11 | +## 🧩 ADB has no built-in commands |
29 | 12 |
|
30 | | ---- |
31 | | - |
32 | | -## 🎉 Fun Commands |
33 | | - |
34 | | -| Command | Description | Usage | |
35 | | -|--------|-------------|-------| |
36 | | -| `/8ball <question>` | Ask the magic 8-ball a question. | `/8ball Will I win?` | |
37 | | -| `/avatar [user]` | Display a user's avatar. | `/avatar @user` | |
38 | | -| `/meme [subreddit]` | Get a random meme. | `/meme` | |
39 | | -| `/poll <question> <options>` | Create an emoji poll. | `/poll "Best fruit?" apples, bananas, oranges` | |
40 | | -| `/reminder <time> <message>` | Set a reminder. | `/reminder 1h Take a break` | |
41 | | -| `/roll <dice>` | Roll dice. | `/roll 2d6` | |
42 | | -| `/secret` | Discover an easter egg. | `/secret` | |
| 13 | +ADB's core is a lean bot runtime + dashboard. **It ships with zero user-facing |
| 14 | +slash commands of its own.** Every command your server gets comes from an |
| 15 | +installed **plugin** — a package named `adb-plugin-*`. |
43 | 16 |
|
44 | | ---- |
| 17 | +At startup the plugin loader discovers plugins from two places: |
45 | 18 |
|
46 | | -## ⚙️ General Commands |
47 | | - |
48 | | -| Command | Description | Usage | |
49 | | -|--------|-------------|-------| |
50 | | -| `/banner` | Display server banner. | `/banner` | |
51 | | -| `/birthday <subcommand>` | Manage birthdays. | `/birthday set 1990-01-01` | |
52 | | -| `/botstats` | Bot performance statistics. | `/botstats` | |
53 | | -| `/calculate <expression>` | Perform arithmetic. | `/calculate 5 + 7` | |
54 | | -| `/dm <message>` | Send yourself a DM. | `/dm Remember the meeting!` | |
55 | | -| `/feedback` | Submit feedback. | `/feedback This bot is useful!` | |
56 | | -| `/help` | List bot commands. | `/help` | |
57 | | -| `/joindate [user]` | Show when a user joined. | `/joindate @user` | |
58 | | -| `/ping` | Bot and API latency. | `/ping` | |
59 | | -| `/resetnick` | Reset your nickname. | `/resetnick` | |
60 | | -| `/reverse <text>` | Reverse a message. | `/reverse hello` | |
61 | | -| `/serverinfo` | Display server info. | `/serverinfo` | |
62 | | -| `/setnick <nickname>` | Change your nickname. | `/setnick Hero` | |
63 | | -| `/spoiler <text>` | Hide text as spoiler. | `/spoiler secret text` | |
64 | | -| `/uptime` | Bot uptime info. | `/uptime` | |
65 | | -| `/userinfo [user]` | Detailed user info. | `/userinfo @user` | |
| 19 | +- `node_modules/` — anything matching `adb-plugin-*` with a `plugin.json` + entry file |
| 20 | +- the local `plugins/` directory — the only in-repo plugin is `plugins/administration` (the dashboard itself) |
66 | 21 |
|
67 | | ---- |
| 22 | +Because the command set depends entirely on which plugins you install, this repo |
| 23 | +does **not** maintain a central slash-command list. Each plugin documents its own |
| 24 | +commands in its own README. |
68 | 25 |
|
69 | | -## 🛡️ Moderation Commands |
| 26 | +### The flow: install → enable → deploy → commands appear |
70 | 27 |
|
71 | | -| Command | Description | Usage | |
72 | | -|--------|-------------|-------| |
73 | | -| `/ban <user> [reason]` | Ban a user. | `/ban @user spamming` | |
74 | | -| `/kick <user> [reason]` | Kick a user. | `/kick @user offensive language` | |
75 | | -| `/purge <amount> [user]` | Bulk delete messages. | `/purge 50` | |
76 | | -| `/ticket <title> <description>` | Create a support ticket. | `/ticket "Bug Report" "Feature not working"` | |
77 | | -| `/ticketdashboard <subcommand>` | Manage tickets. Mods only. | `/ticketdashboard list` | |
| 28 | +1. **Install** a plugin — from the dashboard marketplace, or `npm install adb-plugin-<name>` in the bot's root. |
| 29 | +2. **Enable** it from the dashboard (writes it into the plugin config the loader reads). |
| 30 | +3. **Deploy** the commands to Discord: |
| 31 | + ```bash |
| 32 | + npm run deploy |
| 33 | + ``` |
| 34 | + This runs `node scripts/build-plugins.js && node deploy-commands.js`, which |
| 35 | + gathers every enabled plugin's slash commands and registers them with Discord. |
| 36 | +4. **Commands appear** in your server. Plugin *logic* hot-reloads, but adding or |
| 37 | + changing a slash command definition always needs a fresh `npm run deploy`. |
78 | 38 |
|
79 | 39 | --- |
80 | 40 |
|
81 | | -## 📈 XP & Leveling Commands |
82 | | - |
83 | | -| Command | Description | Usage | |
84 | | -|--------|-------------|-------| |
85 | | -| `/daily` | Claim daily reward. | `/daily` | |
86 | | -| `/points <subcommand>` | Manage or view points. | `/points view` | |
87 | | -| `/profile [user]` | View profile and stats. | `/profile @user` | |
88 | | -| `/roles <subcommand>` | View or claim role rewards. | `/roles claim` | |
89 | | -| `/xpconfig <subcommand>` | Configure XP and leveling. Admin only. | `/xpconfig set multiplier 2x` | |
| 41 | +## 🔌 Official plugins |
| 42 | + |
| 43 | +From the registry at [AdvancedDiscordBot/registry](https://github.com/AdvancedDiscordBot/registry). |
| 44 | +The commands below are indicative — see each plugin's own README for the full, current reference. |
| 45 | + |
| 46 | +| Plugin | What it adds | |
| 47 | +|---|---| |
| 48 | +| [`adb-plugin-moderation`](https://github.com/AdvancedDiscordBot/adb-plugin-moderation) | Moderation + tickets: `/ban`, `/unban`, `/kick`, `/timeout`, `/warn`, `/warnings`, `/purge`, `/slowmode`, `/lock`, `/case`, `/history`, `/ticket …`. Numbered case log with auto-escalation. | |
| 49 | +| [`adb-plugin-levels`](https://github.com/AdvancedDiscordBot/adb-plugin-levels) | XP & leveling from message activity: `/level`, `/leaderboard`, plus `/level-config` and `/level-roles` for admins. Role rewards on level-up. | |
| 50 | +| [`adb-plugin-aegis`](https://github.com/AdvancedDiscordBot/adb-plugin-aegis) | Server protection: anti-raid, anti-spam, link filtering, and alt/join-gate detection. | |
| 51 | +| [`adb-plugin-automod`](https://github.com/AdvancedDiscordBot/adb-plugin-automod) | Rule-based auto-moderation: `/automod rule add|remove|edit`, `/automod list`, `/automod whitelist`, `/automod action`. | |
| 52 | +| [`adb-plugin-autorole`](https://github.com/AdvancedDiscordBot/adb-plugin-autorole) | Automatically assigns roles to members on join. | |
| 53 | +| [`adb-plugin-confessions`](https://github.com/AdvancedDiscordBot/adb-plugin-confessions) | Anonymous confessions with optional approval: `/confess text`, `/confess-admin …`. | |
| 54 | +| [`adb-plugin-counting`](https://github.com/AdvancedDiscordBot/adb-plugin-counting) | Counting game channel: `/counting channel|stats|reset`. | |
| 55 | +| [`adb-plugin-custom-commands`](https://github.com/AdvancedDiscordBot/adb-plugin-custom-commands) | Lets admins define their own custom text/response commands. | |
| 56 | +| [`adb-plugin-giveaways`](https://github.com/AdvancedDiscordBot/adb-plugin-giveaways) | Giveaways: `/giveaway start|end|reroll|list`. | |
| 57 | +| [`adb-plugin-invite-tracker`](https://github.com/AdvancedDiscordBot/adb-plugin-invite-tracker) | Invite tracking + leaderboard: `/invites me|user|leaderboard`, `/invites-admin …`. | |
| 58 | +| [`adb-plugin-reaction-roles`](https://github.com/AdvancedDiscordBot/adb-plugin-reaction-roles) | Self-assignable roles via reactions/buttons. | |
| 59 | +| [`adb-plugin-reminders`](https://github.com/AdvancedDiscordBot/adb-plugin-reminders) | Personal reminders: `/remind set|list|cancel`. Bot DMs you when due. | |
| 60 | +| [`adb-plugin-server-logs`](https://github.com/AdvancedDiscordBot/adb-plugin-server-logs) | Audit logging by category: `/log set|remove|list|enable|disable|ignore|retention`. | |
| 61 | +| [`adb-plugin-tempvoice`](https://github.com/AdvancedDiscordBot/adb-plugin-tempvoice) | Temporary "join-to-create" voice channels with owner controls (lock, limit, rename, permit/deny, claim). | |
| 62 | +| [`adb-plugin-todo`](https://github.com/AdvancedDiscordBot/adb-plugin-todo) | Personal to-do lists: `/todo add|list|done|remove|edit|clear`. | |
| 63 | +| [`adb-plugin-welcome`](https://github.com/AdvancedDiscordBot/adb-plugin-welcome) | Configurable welcome / goodbye messages and cards. | |
| 64 | + |
| 65 | +> Command names above were taken from each plugin's README/source where verified. |
| 66 | +> Exact options and subcommands can change between versions — the plugin's own |
| 67 | +> README is always the source of truth. |
90 | 68 |
|
91 | 69 | --- |
92 | 70 |
|
93 | | -## 🤖 AI & Plugin Commands |
| 71 | +## 🔗 Where to look next |
94 | 72 |
|
95 | | -| Command | Description | Usage | |
96 | | -|--------|-------------|-------| |
97 | | -| `/aiassistant ask <question>` | Ask the AI assistant. | `/aiassistant ask What can you do?` | |
98 | | -| `/config-ai` | Configure AI plugin behavior. | `/config-ai` | |
99 | | -| `/faq` | Use FAQ assistant features when the AI plugin is enabled. | `/faq` | |
100 | | -| `/antiraid <subcommand>` | Manage anti-raid system. | `/antiraid enable` | |
101 | | -| `/truthordare <subcommand>` | Play Truth or Dare. | `/truthordare start` | |
| 73 | +- **Per-plugin command reference** — each plugin's `README.md` (linked in the table above) lists its full, current command set. |
| 74 | +- **Marketplace / registry** — browse and install plugins from the dashboard, or see the registry: [AdvancedDiscordBot/registry](https://github.com/AdvancedDiscordBot/registry). |
| 75 | +- **Building your own plugin** — [CREATE-PLUGIN.md](./CREATE-PLUGIN.md). |
| 76 | +- **Getting started with the bot** — [README.md](./README.md). |
102 | 77 |
|
103 | 78 | --- |
104 | 79 |
|
105 | | -Plugins can add more slash commands at runtime. Re-run `npm run deploy` after adding or changing slash command definitions so Discord receives the updated command list. |
| 80 | +Adding or changing a plugin's slash commands? Re-run `npm run deploy` so Discord |
| 81 | +receives the updated command list. |
0 commit comments