# ENG

## ⚙️ Installation Requirements:&#x20;

Python version 3.11.6 or higher

Download:&#x20;

1 | Clone the repository

```bash
git clone https://github.com/0xStarLabs/StarLabs-Discord.git
```

```
cd StarLabs-Discord
```

2 | Install dependencies

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

3 | Launch (after configuration)

```bash
py main.py
```

&#x20;

## 📁 Setup (data folder)

This folder contains all user data required for operation.

accounts.xlsx - spreadsheet with accounts, proxies, and account data.\
Each row = 1 account. Cells are labeled intuitively. \\

You only need to fill in the TOKEN and PROXY fields. The bot can also work without proxies.&#x20;

<mark style="color:yellow;">Proxy format: USER:PASS\@IP:PORT</mark> \ <mark style="color:yellow;">ONLY HTTP proxies are supported.</mark>

The MESSAGES\_TXT field contains the name of the txt file with messages for each account. All txt files are located in the /messages folder. \
For example: Account 1 will use messages\_1.txt. Create this txt file in the messages folder and insert messages line by line. Their operation mode is configured in the config.

## 📝 Config.yaml&#x20;

This section details each function in the config.yaml file. Most variables are self-explanatory from their names and comments above each one, so I'll describe only the main ones:

DISCORD\_TOKEN\_FOR\_PARSIN

```
DISCORD_TOKEN_FOR_PARSING: ""
Insert 1 working Discord token here that will be used for data retrieval. 
Used in Reaction and Press Button functions.
Makes 1 request to get data, nothing more. 
Must be on the server where you want to press the button or add a reaction.
```

```
AI_CHATTER
In GUILD_ID and CHANNEL_ID, insert the server and chat data 
where you want to send ChatGPT messages.

ANSWER_PERCENTAGE: 0 to 100. Example: 
if someone asks your account something or replies to it. 
If value is 0, the bot will ignore and write messages to chat. 
If value is 100, the bot will 100% respond to all such replies.

REPLY_PERCENTAGE: 0 to 100. 
If value is 0, bot will simply write messages to chat. 
If value is 100, bot will reply to other messages in chat for every message.
```

```
CHAT_GPT API_KEYS: ["key1", "key2"] - list of ChatGPT API keys. 
You can insert 1 or several; the bot will randomly choose 1 for each request. 
Find them at https://platform.openai.com/settings/organization/api-keys 
Balance required on the key.

MODEL: "gpt-4o" - specify which ChatGPT model the bot will use. 
List of all models available at https://platform.openai.com/docs/pricing.

PROXY_FOR_CHAT_GPT: "user:pass@ip:port". 
If ChatGPT is blocked in your country, you can insert a proxy here and requests will work. 
Only affects GPT requests, nothing else.
```


---

# 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://star-labs.gitbook.io/star-labs/discord/eng.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.
