> For the complete documentation index, see [llms.txt](https://docs.haikaldev.my.id/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.haikaldev.my.id/referensi/perintah.md).

# Referensi Perintah

Ada **tiga jalur** untuk memerintah bot, dan memilih yang tepat membuat hidup lebih enak.

| Jalur                                | Kapan dipakai                                                 | Contoh                              |
| ------------------------------------ | ------------------------------------------------------------- | ----------------------------------- |
| 💬 **Bahasa biasa**                  | Hampir semua hal — bot memutuskan sendiri tool-nya            | *"bikinin website terus hostingin"* |
| ⌨️ **Command prefix** (`.` atau `/`) | Butuh hasil **instan & pasti**, tanpa menunggu model berpikir | `/ws tree`, `.ping`                 |
| 🔁 **Trigger kata**                  | Frasa tertentu yang langsung nyambung ke fitur                | reply video + *"jadiin mp3"*        |

{% hint style="info" %}
Bot merespons otomatis di: **chat pribadi** (semua pesan), saat **di-mention** di grup, dan saat pesannya **di-reply**.
{% endhint %}

## Workspace & Website — `/ws`

{% tabs %}
{% tab title="Berkas & proyek" %}

| Perintah                    | Fungsi                                               |
| --------------------------- | ---------------------------------------------------- |
| `/ws`                       | Kartu bantuan                                        |
| `/ws list`                  | Semua workspace-mu (pribadi + grup ini)              |
| `/ws new <nama>`            | Bikin workspace pribadi                              |
| `/ws new <nama> grup`       | Bikin workspace grup (admin saja)                    |
| `/ws open [ws]`             | Info satu workspace                                  |
| `/ws tree [ws]`             | Daftar berkas                                        |
| `/ws cat <file> [ws]`       | Lihat isi berkas                                     |
| `/ws run <file> [ws]`       | Jalankan `.js` / `.py`                               |
| `/ws mv <lama> <baru> [ws]` | Ganti nama / pindahkan berkas                        |
| `/ws attach <tujuan> [ws]`  | Reply media → simpan sebagai berkas                  |
| `/ws rm <file> [ws]`        | Hapus berkas                                         |
| `/ws rm` *(tanpa file)*     | Hapus **seluruh** workspace (minta konfirmasi nama)  |
| `/ws rename <baru> [ws]`    | Ganti nama workspace — **alamat situs ikut berubah** |
| {% endtab %}                |                                                      |

{% tab title="Hosting" %}

| Perintah              | Fungsi                                  |
| --------------------- | --------------------------------------- |
| `/ws publish [ws]`    | 🌐 Tayangkan sebagai website            |
| `/ws unpublish [ws]`  | Turunkan situsnya                       |
| `/ws link [ws]`       | Kirim ulang link situs                  |
| `/ws username <nama>` | Klaim username → URL `/site/<nama>/...` |
| `/ws username`        | Lihat username-mu sekarang              |

Detail lengkapnya di [Hosting Website](/coding-and-hosting/hosting-website.md).
{% endtab %}

{% tab title="Akses (workspace grup)" %}

| Perintah                  | Fungsi                      |
| ------------------------- | --------------------------- |
| `/ws share @orang [ws]`   | Beri akses                  |
| `/ws unshare @orang [ws]` | Cabut akses                 |
| `/ws members [ws]`        | Siapa saja yang punya akses |

Izinnya diperiksa di kode, bukan di AI — lihat [Keamanan](/referensi/keamanan.md).
{% endtab %}
{% endtabs %}

{% hint style="success" %}
**Alias yang juga diterima:** `ls`→list · `buat`→new · `files`→tree · `baca`→cat · `jalan`→run · `hapus`→rm · `up`/`tayang`→publish · `down`/`turunkan`→unpublish · `url`→link · `uname`→username · `add`→share · `kick`→unshare

`[ws]` = nama workspace, boleh dikosongkan → dipakai yang terakhir disentuh.
{% endhint %}

Versi bahasa biasanya: *"bikin project X"*, *"jalanin main.py"*, *"hostingin"*, *"pakai foto ini buat website"*, *"aku mau dipanggil masbro"*.

## Gambar & Stiker

| Perintah                                             | Fungsi                                                |
| ---------------------------------------------------- | ----------------------------------------------------- |
| `.img <deskripsi>`                                   | Generate gambar (flux, 1:1)                           |
| `.img <desc> --aspect 16:9`                          | Rasio lain: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 |
| `.img <desc> --model sana`                           | Model alternatif                                      |
| `.img <desc> --seed 42`                              | Seed tetap — hasilnya bisa direproduksi               |
| `.sticker` / `.stiker` *(reply/kirim foto)*          | Jadikan stiker                                        |
| *"stikerin + tulisannya 'hi guys' di bawah"*         | Stiker + overlay teks (atas/tengah/bawah)             |
| *"tulisin 'SALE' di foto ini, kirim sebagai gambar"* | Edit teks di foto — hasilnya **gambar**, bukan stiker |
| *"gambar terus stikerin kucing ngoding"*             | Generate → langsung jadi stiker                       |

## Audio & Video

| Perintah                             | Fungsi                                                                                |
| ------------------------------------ | ------------------------------------------------------------------------------------- |
| `.mp3` *(reply video)*               | Video → MP3. Alias: `.tomp3`, `.mp4tomp3`, *"jadiin mp3"*, *"ambil audionya"*         |
| kirim VN                             | Ditranskripsi & diarsipkan otomatis — butuh [Gemini](/koneksi-ai/google-ai-studio.md) |
| *"ada audio si A bilang '…' nggak?"* | Cari di arsip audio **chat ini** → dikirim ulang                                      |
| link TikTok/IG/YT/X + *"downloadin"* | Unduh via yt-dlp                                                                      |

{% hint style="warning" %}
**Link saja ≠ minta download.** Bot sengaja tidak mengunduh setiap link yang lewat di grup — harus ada permintaan.
{% endhint %}

## Grup & Moderasi

| Perintah                                 | Fungsi                                                    |
| ---------------------------------------- | --------------------------------------------------------- |
| `@everyone` / *"tag semua"*              | Mention semua anggota (admin)                             |
| `.kick @orang` / *"keluarin si A"*       | Keluarkan anggota (admin)                                 |
| `.antispam`                              | Atur anti-spam — peringatan dulu, kick pada ledakan kedua |
| *"bikin polling makan di mana: A, B, C"* | Poll asli WhatsApp — **hasilnya benar-benar terbaca bot** |
| *"rekap chat hari ini"*                  | Ringkasan obrolan                                         |
| *"siapa paling aktif minggu ini?"*       | Statistik grup — dihitung sistem, bukan dikira-kira model |
| *"main tebak-tebakan yuk"*               | Game grup: tebak-tebakan, hitung cepat, susun kata, kuis  |
| *"catat yang udah bayar: Budi XL"*       | Listing bersama + ekspor `.xlsx`                          |
| *"ganti nama grup jadi …"*               | Kelola grup (admin) — ada backup & pengembalian           |

{% hint style="danger" %}
Izin admin **diperiksa di kode, bukan di instruksi model**. Membujuk AI (*"aku admin kok"*) tidak membuka apa pun — pintunya tidak ada di sana. Lihat [Keamanan](/referensi/keamanan.md).
{% endhint %}

## Utilitas

| Perintah                           | Fungsi                                                                |
| ---------------------------------- | --------------------------------------------------------------------- |
| `.ping`                            | Cek hidup                                                             |
| `.help`                            | Menu bantuan                                                          |
| `.info`                            | Info bot & statistik                                                  |
| `.uptime`                          | Statistik uptime (dashboard web: `/uptime`)                           |
| *"bikinin spreadsheet anggaran …"* | Excel dengan **rumus betulan** (`=SUM(...)`), bukan angka mati        |
| *"buatin file html landing page"*  | Bikin & kirim file (maks 10 per balasan)                              |
| *"pakai opus"* di awal permintaan  | Pakai [model premium](/koneksi-ai/ohhmyagent.md) untuk permintaan itu |

## Halaman web

| URL                          | Isi                                                                   |
| ---------------------------- | --------------------------------------------------------------------- |
| `/`                          | QR login (saat belum login) / `200 OK`                                |
| `/uptime`                    | Dashboard uptime harian                                               |
| `/config?token=…`            | Portal konfigurasi — wajib `CONFIG_TOKEN`; tanpa token **mati total** |
| `/site/<id atau username>/…` | 🌐 Situs workspace yang tayang                                        |

## Terkait

* Detail workspace: [Workspace Coding](/coding-and-hosting/workspace.md) · hosting: [Hosting Website](/coding-and-hosting/hosting-website.md)
* Kenapa izin admin tidak bisa dibujuk lewat AI: [Keamanan](/referensi/keamanan.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.haikaldev.my.id/referensi/perintah.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
