├── .env ├── requirements.txt ├── README.md └── bot.py /.env: -------------------------------------------------------------------------------- 1 | API_KEY=your_api_key_here 2 | WALLETS=0xYourWallet 3 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | shareithub 2 | requests 3 | faker 4 | termcolor 5 | python-dotenv 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KITE AI BOT TUTORIAL 2 | 3 | # Tutorial by Video : [CLICK HERE](LINK) 4 | # Join Telegram Channel : [CLICK HERE](https://t.me/SHAREITHUB_COM) 5 | # Join Kite AI : [CLICK HERE](https://testnet.gokite.ai?r=jbD4qztT) 6 | 7 | get groq api key : [CLICK HERE](https://chat.groq.com/) 8 | 9 | U can following this step !! 10 | Create screen : 11 | ``` 12 | screen -S kiteai 13 | ``` 14 | Install Git : 15 | ``` 16 | sudo apt install git 17 | ``` 18 | Install python3 : 19 | ``` 20 | sudo apt install python3 21 | ``` 22 | Install python3-venv : 23 | ``` 24 | sudo apt install python3-venv 25 | ``` 26 | Install python3-pip : 27 | ``` 28 | sudo apt install python3-pip 29 | ``` 30 | Git clone file bot : 31 | ``` 32 | git clone https://github.com/shareithub/kiteai-bot.git 33 | ``` 34 | Go to folder bot : 35 | ``` 36 | cd kiteai-bot 37 | ``` 38 | Sign Venv : 39 | ``` 40 | python3 -m venv venv 41 | source venv/bin/activate 42 | ``` 43 | Install module : 44 | ``` 45 | pip install -r requirements.txt 46 | ``` 47 | Edit file .env : 48 | ``` 49 | nano .env 50 | ``` 51 | API_KEY=your_api_key_here 52 | 53 | WALLETS=0xYourWallet1,0xYourWallet2 54 | 55 | After done, u can save file : CTRL+X+Y ( ENTER ) 56 | 57 | Run bot : 58 | ``` 59 | python3 bot.py 60 | ``` 61 | #DONE ? 62 | 63 | U can exit screen, after running bot : 64 | 65 | CTRL+A+D 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /bot.py: -------------------------------------------------------------------------------- 1 | import shareithub 2 | import requests 3 | import json 4 | import time 5 | import random 6 | import os 7 | from shareithub import shareithub 8 | from faker import Faker 9 | from termcolor import colored 10 | from dotenv import load_dotenv 11 | 12 | # Load environment variables 13 | load_dotenv() 14 | 15 | fake = Faker() 16 | 17 | agents = { 18 | "deployment_p5J9lz1Zxe7CYEoo0TZpRVay": "Professor", 19 | "deployment_7sZJSiCqCNDy9bBHTEh7dwd9": "Crypto Buddy" 20 | } 21 | 22 | API_KEY = os.getenv("API_KEY") 23 | WALLETS = os.getenv("WALLETS", "").split(",") 24 | headersFilePath = 'headers.json' 25 | rateLimitExceeded = False 26 | shareithub() 27 | 28 | def display_app_title(): 29 | print(colored('\n🚀 AI & Blockchain Automation Script 🚀', 'cyan', attrs=['bold'])) 30 | print(colored('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━', 'blue')) 31 | 32 | def load_headers(): 33 | if os.path.exists(headersFilePath): 34 | with open(headersFilePath, 'r') as f: 35 | return json.load(f) 36 | return {} 37 | 38 | def save_headers(headers): 39 | with open(headersFilePath, 'w') as f: 40 | json.dump(headers, f, indent=2) 41 | 42 | def generate_random_desktop_header(): 43 | return {"User-Agent": fake.user_agent()} 44 | 45 | def get_random_theme(): 46 | themes = [ 47 | "Proof of Attributed Intelligence (PoAI)", "Decentralized AI Governance", 48 | "Democratization of AI Economy", "AI-powered Smart Contracts", 49 | "Blockchain-based AI Marketplaces", "Autonomous AI Agents on Blockchain", 50 | "Scalability Challenges in AI & Blockchain", "Zero-Knowledge Proofs for AI Privacy", 51 | "AI and Blockchain Synergy for Cybersecurity", "Energy Efficiency in AI Blockchain Networks" 52 | ] 53 | return random.choice(themes) 54 | 55 | def generate_random_words(): 56 | words = { 57 | "subjects": ["AI", "blockchain", "smart contracts", "scalability", "security", "privacy", "decentralization", "automation", "trust", "efficiency"], 58 | "verbs": ["improve", "affect", "contribute", "enhance", "drive", "change", "transform", "reduce", "optimize", "strengthen"], 59 | "objects": ["technology", "systems", "applications", "networks", "protocols", "platforms", "transactions", "processes", "infrastructure", "economy"], 60 | "questions": ["How", "What", "Can", "Why", "Does", "What is the impact of", "How does", "What effect does", "Can", "How can"], 61 | "modifiers": ["the future of", "the efficiency of", "the security of", "the scalability of", "the integration of", "the development of", "the adoption of"] 62 | } 63 | return f"{random.choice(words['questions'])} {random.choice(words['subjects'])} {random.choice(words['verbs'])} {random.choice(words['modifiers'])} {random.choice(words['objects'])}?" 64 | 65 | def generate_random_question(): 66 | global rateLimitExceeded 67 | theme = get_random_theme() 68 | if rateLimitExceeded: 69 | return generate_random_words() 70 | 71 | try: 72 | response = requests.post('https://api.groq.com/openai/v1/chat/completions', 73 | headers={'Authorization': f'Bearer {API_KEY}', 'Content-Type': 'application/json'}, 74 | json={'model': 'llama-3.3-70b-versatile', 75 | 'messages': [{'role': 'user', 'content': f'Generate a question about {theme} in AI and blockchain.'}], 76 | 'temperature': 0.9}) 77 | response.raise_for_status() 78 | return response.json()["choices"][0]["message"]["content"].strip() 79 | except requests.exceptions.RequestException: 80 | rateLimitExceeded = True 81 | return generate_random_words() 82 | 83 | def process_wallet(wallet, headers, iterationsPerAgent): 84 | print(colored(f"\n💰 Processing Wallet: {wallet}", 'green', attrs=['bold'])) 85 | for agent_id, agent_name in agents.items(): 86 | print(colored(f"\n🤖 Agent: {agent_name}", 'magenta', attrs=['bold'])) 87 | print(colored('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━', 'blue')) 88 | for i in range(iterationsPerAgent): 89 | print(colored(f"⚡ Task-{i + 1}", 'yellow', attrs=['bold'])) 90 | question = generate_random_question() 91 | print(colored("📌 Question:", 'cyan'), colored(question, attrs=['bold'])) 92 | time.sleep(1) 93 | print(colored('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━', 'blue')) 94 | 95 | def main(): 96 | display_app_title() 97 | headers = load_headers() 98 | iterationsPerAgent = 7 99 | 100 | for wallet in WALLETS: 101 | if wallet and wallet not in headers: 102 | headers[wallet] = generate_random_desktop_header() 103 | save_headers(headers) 104 | try: 105 | process_wallet(wallet, headers, iterationsPerAgent) 106 | except Exception as e: 107 | print(colored(f"❌ Failed to process wallet {wallet}: {e}", 'red', attrs=['bold'])) 108 | 109 | random_time = random.randint(3 * 3600, 7 * 3600) 110 | print(colored(f"⏳ Waiting for {random_time} seconds before restarting...", 'yellow', attrs=['bold'])) 111 | time.sleep(random_time) 112 | global rateLimitExceeded 113 | rateLimitExceeded = False 114 | main() 115 | 116 | if __name__ == "__main__": 117 | main() 118 | --------------------------------------------------------------------------------