> ## Documentation Index
> Fetch the complete documentation index at: https://hashbot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Commands

> Complete command reference for Hashbot Vision — OCR detection, Action Log, Vision Insight, and server management.

All Hashbot Vision commands are Discord slash commands. Type `/` in any channel where the bot is present to see available commands.

<Info>
  Most commands require **Administrator** permission. Commands are ephemeral (only visible to you) unless otherwise noted.
</Info>

## OCR and detection

| Command                    | Description                                                      |
| -------------------------- | ---------------------------------------------------------------- |
| `/set-log <channel>`       | Set the log channel for detection alerts                         |
| `/set-punishment <action>` | Set the action taken on detection: `delete`, `timeout`, or `ban` |
| `/set-ai <enabled>`        | Enable or disable AI-powered scam detection                      |
| `/set-mod <role>`          | Set the role pinged when violations are detected                 |
| `/keywords <action>`       | Add, remove, or list keyword detection patterns                  |
| `/template`                | View or apply pre-built scam keyword templates                   |
| `/settings`                | View the full bot configuration for your server                  |

## Link scanning

| Command                    | Description                                                     |
| -------------------------- | --------------------------------------------------------------- |
| `/link-checking <enabled>` | Enable or disable automatic URL scanning in messages and images |
| `/link-checker <url>`      | Manually check if a specific URL is flagged as malicious        |

## Allowlist

| Command               | Description                                                    |
| --------------------- | -------------------------------------------------------------- |
| `/allowlist <action>` | Add, remove, list, or reset roles that are immune to detection |

## Channel management

| Command                      | Description                                                          |
| ---------------------------- | -------------------------------------------------------------------- |
| `/ignore <action> [channel]` | Add, remove, or list channels exempt from OCR punishment             |
| `/logs-all <enabled>`        | Enable or disable logging of all OCR results (including clean scans) |

## Spammer protection

| Command                       | Description                                                            |
| ----------------------------- | ---------------------------------------------------------------------- |
| `/autokick-spammer <enabled>` | Auto-kick members that Discord has flagged as likely spammers          |
| `/scan-spammers`              | Scan all current members for Discord-flagged spammers and kick matches |

## Action Log

| Command                                | Description                                                                |
| -------------------------------------- | -------------------------------------------------------------------------- |
| `/actionlog`                           | Enable or disable the Action Log system                                    |
| `/actionlog-setup`                     | Launch the interactive setup wizard — walks through all 7 event categories |
| `/actionlog-set <event> [channel]`     | Set the log channel for a specific event type                              |
| `/actionlog-bulk <category> [channel]` | Set one channel for all events in a category                               |
| `/actionlog-ignore <action>`           | Add or remove ignored channels and roles                                   |
| `/actionlog-settings`                  | View the full Action Log configuration                                     |
| `/actionlog-options`                   | Configure display options (avatar thumbnails, new account age threshold)   |

<Tip>
  Not sure where to start? Run `/actionlog-setup` — the wizard handles everything in under a minute.
</Tip>

## Vision Insight

| Command                        | Description                                                              |
| ------------------------------ | ------------------------------------------------------------------------ |
| `/vision-insight`              | Configure Vision Insight (enable/disable, mode, log channel, thresholds) |
| `/vision-insight-check <user>` | Check if a user is flagged in the cross-server threat pool               |
| `/vision-insight-stats`        | View live pool statistics and your server's contribution                 |

<Info>
  Running `/vision-insight` with no options displays your current configuration.
</Info>

## Quick reference

<CardGroup cols={2}>
  <Card title="Essential setup" icon="rocket">
    ```
    /set-log #vision-alerts
    /set-punishment ban
    /set-ai enabled
    /link-checking enabled
    /template apply
    /actionlog-setup
    /vision-insight enabled:True mode:Protect
    ```
  </Card>

  <Card title="Day-to-day moderation" icon="shield">
    ```
    /settings
    /vision-insight-check @user
    /link-checker https://example.com
    /scan-spammers
    /actionlog-settings
    ```
  </Card>
</CardGroup>
