Skip to content

Commit 4fef62e

Browse files
authored
🔥 init script
1 parent d518348 commit 4fef62e

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,41 @@
1-
# RocketChat-V2ray-Config
1+
# RocketChat V2ray Hunter
2+
3+
A Python bot that automatically fetches V2Ray, VLESS, and Trojan configurations from a remote repository, tests their connectivity, measures latency, and sends working configurations to a Rocket.Chat channel via webhook.
4+
5+
## Features
6+
7+
- Supports **VMess**, **VLESS**, and **Trojan** protocols.
8+
- **Automatic testing** of configurations every 12 minutes.
9+
- Measures **ping/latency** for each configuration.
10+
- Sends working configurations to a **Rocket.Chat webhook** with proper formatting.
11+
- Handles **large subscription files** with multiple configurations.
12+
- Emoji-safe JSON formatting and readable code block messages.
13+
14+
## Requirements
15+
16+
- Python 3.9+
17+
- `requests` library
18+
- `v2ray` installed for VMess configuration testing
19+
- Rocket.Chat account with incoming webhook
20+
21+
## Usage
22+
23+
1. Clone the repository.
24+
2. Create a `config.py` file with your configuration:
25+
26+
```python
27+
ROCKET_WEBHOOK = "https://your.rocketchat.server/hooks/XXXXXXX"
28+
CONFIG_URL = "https://example.com/v2ray_configs.txt"
29+
LOCAL_PORT = 1080
30+
FETCH_INTERVAL = 12 * 60
31+
TEST_URL = "http://httpbin.org/ip"
32+
CHANNEL = "#your-channel"
33+
```
34+
35+
3. Run the bot:
36+
37+
```bash
38+
python bot.py
39+
```
40+
41+
The bot will automatically fetch configs, test them, and send working ones to the specified Rocket.Chat channel.

robot.py renamed to bot.py

File renamed without changes.

0 commit comments

Comments
 (0)