> For the complete documentation index, see [llms.txt](https://micup.renbow.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://micup.renbow.dev/bot-sinifi.md).

# Bot sınıfı

## Kurucu

```python
Bot(
    token=None,
    *,
    ignored_events=None,
    origin="https://micup.gg",
    presence=None,
)
```

| Parametre        | Varsayılan                            | Açıklama                                                                                                               |
| ---------------- | ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `token`          | `MICUP_TOKEN` ortam değişkeni         | Bot token'ı. İkisi de yoksa `ValueError` fırlatır.                                                                     |
| `ignored_events` | `["TYPING_START", "PRESENCE_UPDATE"]` | Gateway'den gelmesin istenen olaylar. Liste verirsen varsayılanı tamamen değiştirir.                                   |
| `origin`         | `"https://micup.gg"`                  | Micup sunucu adresi. Keşif belgesi `origin/.well-known/fluxer` adresinden alınır.                                      |
| `presence`       | `None`                                | Bağlanırken gönderilen başlangıç durumu. Ham sözlük olarak verilir. Bağlanınca değiştirmek için `set_presence` kullan. |

## Özellikler

| Özellik          | Tür                 | Açıklama                                                |
| ---------------- | ------------------- | ------------------------------------------------------- |
| `bot.user`       | `User` ya da `None` | Bağlantı kurulunca bot hesabı. Bağlanmadan önce `None`. |
| `bot.session_id` | `str` ya da `None`  | Gateway oturum kimliği.                                 |
| `bot.sequence`   | `int` ya da `None`  | Son alınan olay sırası.                                 |
| `bot.voice`      | `Voice`             | Ses kanalı yönetimi (bölüm 15).                         |

## Çalıştırma ve kapatma

| Metot                 | Açıklama                                                                |
| --------------------- | ----------------------------------------------------------------------- |
| `bot.run()`           | Botu başlatır, Ctrl+C'ye kadar bloklar. Ana giriş noktası budur.        |
| `await bot.start()`   | Asenkron başlatma. Kopunca üstel bekleme ile otomatik yeniden bağlanır. |
| `await bot.close()`   | Gateway bağlantısını kapatır ve açık ses odalarını kapatır.             |
| `await bot.destroy()` | `close()` ile aynıdır.                                                  |
| `bot.is_ready()`      | READY olayı geldiyse `True` döner.                                      |

Yeniden bağlanmada READY tekrar gelir. Bu nedenle başlangıç işlerini `ready` olayında yaparken bunların iki kez çalışabileceğini hesaba kat.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://micup.renbow.dev/bot-sinifi.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
