# Установка

## 🪟 Установка на Windows

1. **Установите Python (версия 3.10+)**
   * Скачайте установщик с официального сайта: <https://www.python.org/downloads/>
   * Во время установки обязательно отметьте галочку:\
     ✅ «Add Python to PATH»
2. **Склонируйте репозиторий**\
   Откройте `cmd` или PowerShell и выполните:

   ```bash
   git clone https://github.com/Jaammerr/Irys-Testnet-Bot.git
   cd Irys-Testnet-Bot
   ```
3. **Создайте и активируйте виртуальное окружение**

   ```bash
   python -m venv venv
   venv\Scripts\activate
   ```
4. **Установите зависимости**

   ```bash
   pip install --upgrade pip
   pip install -r requirements.txt
   ```
5. **Настройте бота**\
   Убедитесь, что папка `config` находится в корневой директории проекта.
6. **Запустите бота**

   ```bash
   python run.py
   ```

   Готово! 🎉

***

## 🐧 Установка на Linux (Ubuntu)

1. **Установите Python и Git**

   ```bash
   sudo apt update
   sudo apt install python3 python3-venv python3-pip git -y
   ```
2. **Склонируйте репозиторий**

   ```bash
   git clone https://github.com/Jaammerr/Irys-Testnet-Bot.git
   cd Irys-Testnet-Bot
   ```
3. **Создайте и активируйте виртуальное окружение**

   ```bash
   python3 -m venv venv
   source venv/bin/activate
   ```
4. **Установите зависимости**

   ```bash
   pip install --upgrade pip
   pip install -r requirements.txt
   ```
5. **Настройте бота**\
   Убедитесь, что папка `config` находится в корневой папке проекта.
6. **Запуск с помощью screen (рекомендуется)**\
   Установите screen (если не установлен):

   ```bash
   sudo apt install screen -y
   ```

   Создайте сессию и запустите бота:

   ```bash
   screen -S irys-bot-session
   python run.py
   ```

   Чтобы свернуть сессию и оставить бота работать:\
   **Ctrl+A**, затем **D**

***

#### 📌 Полезные команды для screen

* 📋 Список всех сессий:

  ```bash
  screen -ls
  ```
* 🔁 Подключиться к сессии:

  ```bash
  screen -r irys-bot-session
  ```
* ❌ Завершить сессию:

  ```bash
  screen -X -S irys-bot-session quit
  ```


---

# 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://jammers-organization.gitbook.io/jambit/testnet/irys/ustanovka.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.
