> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-vip/commands-and-logs.md).

# Commands and Logs

### Commands

| Command                                  | Who                | What it does                                                                 |
| ---------------------------------------- | ------------------ | ---------------------------------------------------------------------------- |
| `/vipshop`                               | Players            | Opens the shop from anywhere. Set `Config.Commands.Shop = false` to disable. |
| `/viptokens`                             | Players            | Shows your VIP token balance.                                                |
| `/vipadmin`                              | Admins             | Opens the admin panel.                                                       |
| `/givetokens [id or license] [amount]`   | Admins and console | Gives a player tokens.                                                       |
| `/removetokens [id or license] [amount]` | Admins and console | Removes tokens from a player.                                                |

All command names can be changed in `Config.Commands`. The `sbvip_purchase` command is for Tebex only and can only be run from the server console.

### Discord logs

Webhook URLs go in `server/webhooks.lua`. This file is server-only, so URLs are never sent to players. Leave one empty to turn that log off.

| Webhook     | Logs                                                              |
| ----------- | ----------------------------------------------------------------- |
| `Tebex`     | New Tebex purchases, and warnings for packages that aren't set up |
| `Claims`    | Tebex purchases redeemed in the shop                              |
| `Purchases` | Everything bought in the shop                                     |
| `Admin`     | Every admin panel change, including old values on edits           |

`ShowEmail` in the same file controls whether the buyer's Tebex email appears in logs and the admin panel. The bot name and picture are at the top of `server/core.lua` (`BotName` and `BotAvatar`).
