A Node.js bot for automated participation in the KlokappAI testnet.
This bot helps automate interactions with the KlokappAI platform by:
- Connecting to the KlokappAI API using an Ethereum wallet
- Automatically sending chat messages
- Managing rate limits
- Rotating between different crypto/blockchain related questions
- NEW: Support for multiple private keys and proxy rotation
- Node.js 16.0.0 or higher
- Ethereum private key(s)
- (Optional) Proxy server(s) for enhanced privacy
-
Clone the repository:
git clone https://github.com/mesamirh/KlokappAi-Testnet-Bot.git cd KlokappAi-Testnet-Bot -
Install dependencies:
npm install -
Create a
.envfile in the project root with your Ethereum private key(s):# Cách 1: Một private key PRIVATE_KEY=your_private_key_here # Cách 2: Nhiều private keys (mỗi dòng là 1 key) PRIVATE_KEY_1=key1_here PRIVATE_KEY_2=key2_here PRIVATE_KEY_3=key3_here # Cách 3: Legacy format (phân cách bằng dấu phẩy) PRIVATE_KEYS=key1_here,key2_here,key3_here -
(Optional) Create a
proxy.txtfile with your proxy list:http://username:password@proxy-server:port socks5://username:password@proxy-server:port http://another-proxy:port
Start the bot:
npm start
The bot will:
- Load all private keys from
.envfile - Load all proxies from
proxy.txtfile - Create multiple bot instances (one per private key)
- Assign proxies to each bot (rotating if fewer proxies than keys)
- Connect each wallet to KlokappAI (via assigned proxy)
- Check available message limits for each account
- Send chat messages until reaching the limit for each account
- Wait for the rate limit to reset before continuing
- 🔐 Secure wallet connection
- 🤖 Automated message sending
- ⏱️ Rate limit management
- 🔄 Automatic reconnection on errors
- 💬 Varied question set for natural interactions
- 🔗 NEW: Multiple private keys support
- 🌐 NEW: Proxy rotation for enhanced privacy
KlokappAi-Testnet-Bot/
├── main.js # Main bot script
├── .env # Private key configuration
├── proxy.txt # Proxy list configuration
├── run-multiple-bots.js # Legacy script for multiple bots
├── package.json # Dependencies
├── env.example # Environment configuration example
└── README.md # This file
PRIVATE_KEY=your_ethereum_private_key_herePRIVATE_KEY_1=key1_here
PRIVATE_KEY_2=key2_here
PRIVATE_KEY_3=key3_herePRIVATE_KEYS=key1_here,key2_here,key3_hereCreate proxy.txt with one proxy per line:
# HTTP Proxy với authentication
http://username:password@proxy-server:port
# SOCKS5 Proxy với authentication
socks5://username:password@proxy-server:port
# HTTP Proxy không có authentication
http://proxy-server:port
# Ví dụ cụ thể:
http://user123:pass456@192.168.1.100:8080
socks5://user123:pass456@proxy.example.com:1080
http://free-proxy.com:3128- Nếu có ít proxy hơn key: Proxy sẽ được luân phiên sử dụng
- Nếu có nhiều proxy hơn key: Chỉ sử dụng số proxy bằng số key
- Nếu không có proxy: Tất cả bot sẽ chạy trực tiếp
The bot supports various proxy formats:
http://username:password@proxy-server:port
https://username:password@proxy-server:port
socks5://username:password@proxy-server:port
http://proxy-server:port
socks5://proxy-server:port
# .env
PRIVATE_KEY=0x1234567890abcdef1234567890abcdef12345678# proxy.txt
http://user:pass@proxy1.com:8080# .env
PRIVATE_KEY_1=0x1234567890abcdef1234567890abcdef12345678
PRIVATE_KEY_2=0xabcdef1234567890abcdef1234567890abcdef12
PRIVATE_KEY_3=0x9876543210fedcba9876543210fedcba98765432# proxy.txt
http://user1:pass1@proxy1.com:8080
socks5://user2:pass2@proxy2.com:1080
http://user3:pass3@proxy3.com:3128# .env
PRIVATE_KEY_1=0x1234567890abcdef1234567890abcdef12345678
PRIVATE_KEY_2=0xabcdef1234567890abcdef1234567890abcdef12# proxy.txt
http://user:pass@proxy.com:8080You can modify the questions array in main.js to customize the messages sent by the bot.
Press Ctrl+C to gracefully shut down all bots.
This bot is for educational purposes only. Use at your own risk and in compliance with KlokappAI's terms of service.# klokapp_auto