> 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-fuel/commands-and-logs.md).

# Commands and Logs

### Commands

| Command                           | Who                   | What it does                                                                                                                           |
| --------------------------------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `/fuelstations`                   | SB Bridge admins      | Lists every gas station: owner, balance, condition and stock. Set buy price and for-sale status, set or remove owners, set a waypoint. |
| `/cancelfuelrun`                  | Players on a delivery | Abandons the tanker run, with a partial refund.                                                                                        |
| `/setfuel [0-100]`                | Admin                 | Sets the fuel of your current vehicle.                                                                                                 |
| `/resetfuelstation [id]`          | Admin                 | Returns a station to its default state.                                                                                                |
| `/fuelstock [id] [type] [liters]` | Admin                 | Sets a station's stock for one fuel.                                                                                                   |

### 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                                         |
| ----------- | -------------------------------------------- |
| `Purchases` | Stations bought or sold                      |
| `Staff`     | Employees hired and fired                    |
| `Pricing`   | Fuel price changes                           |
| `Supply`    | Tanker runs ordered, delivered and cancelled |
| `Upkeep`    | Pump repairs                                 |

The bot name and picture are at the top of `server/main.lua` (`BotName` and `BotAvatar`).
