# Installasjon

***

## 1. Klon repositoriet

```bash
git clone https://github.com/augy-studios/verbal-warning-logger.git
cd verbal-warning-logger
```

***

## 2. Opprett et virtuelt miljø

Et virtuelt miljø holder botens avhengigheter isolert fra systemets Python-installasjon.

```bash
python3 -m venv .venv
```

Aktiver det:

**Linux / macOS:**

```bash
source .venv/bin/activate
```

**Windows (kommandolinje):**

```bat
.venv\Scripts\activate.bat
```

**Windows (PowerShell):**

```powershell
.venv\Scripts\Activate.ps1
```

Ledeteksten din skal nå vise `(.venv)` for å bekrefte at miljøet er aktivt.

***

## 3. Installer avhengigheter

```bash
pip install -r requirements.txt
```

Dette installerer:

| Pakke                    | Formål                                        |
| ------------------------ | --------------------------------------------- |
| `discord.py >= 2.4.0`    | Discord API-bibliotek                         |
| `python-dotenv >= 1.0.1` | Last inn `.env` konfigurasjon                 |
| `aiofiles >= 23.2.1`     | Asynkron fil-I/U                              |
| `aiosqlite >= 0.20.0`    | Asynkron SQLite for advarsler og avstemninger |
| `supabase >= 2.0.0`      | Auttaja-integrasjon (valgfritt)               |

***

## 4. Opprett .env-filen din

Kopier eksempelfilen og fyll den ut:

```bash
cp .env.example .env
```

Se [Konfigurasjon](/no/egen-hosting/configuration.md) siden for detaljer om hver variabel.

***

## Neste steg

Når `.env` er klar, gå til [Kjøre boten](/no/egen-hosting/running.md).


---

# Agent Instructions: 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:

```
GET https://docs.vigila.augystudios.com/no/egen-hosting/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
