CoolFace
Apppublic

dn1207/LocketGold_bot

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

๐Ÿš€ Locket Gold Activator Bot (Professional Edition)

<div align="center">

![Python](https://python.org) ![Telegram](https://core.telegram.org/bots) ![AsyncIO](https://docs.python.org/3/library/asyncio.html) ![License](LICENSE) ![Status]()

The most advanced, high-performance Telegram Bot for automating Locket Gold activation. Built with speed, security, and scalability in mind.

Why Choose This Bot? โ€ข Features โ€ข Installation โ€ข Configuration

</div>


๐Ÿ’Ž Why Choose Locket Gold Activator Bot?

Unlike other basic scripts or tools, this bot is engineered as a production-grade system. It solves the common problems of slowness, API bans, and revocations.

FeatureThis Bot ๐Ÿš€Standard Scripts โŒ
PerformanceZero-Lag Async Core. Handles thousands of users without freezing.Single-threaded. Freezes while processing one user.
ReliabilityRound-Robin Token Rotation. Distributes load to prevent bans.Uses 1 token until it dies or gets rate-limited.
SafetySmart Anti-Revoke. Auto-generates NextDNS profiles to block validation servers.No protection. Gold disappears after a few hours/days.
User ExperienceReal-time Queue Updates. Users know their exact position (#1, #2...).Silent failure. Users don't know if it's working.
ArchitectureWorker Pool. Scalable system (add 1 or 100 workers easily).Simple loop. Cannot scale with demand.

๐ŸŒŸ Key Features

โšก High-Performance Core

  • โ€”Fully Asynchronous: Powered by aiohttp and asyncio for non-blocking I/O. The bot remains responsive to commands even under heavy load.
  • โ€”Worker Pool System: Configurable number of concurrent workers (NUM_WORKERS) to parallelize request processing.

๐Ÿ›ก๏ธ Advanced Security

  • โ€”NextDNS Integration: Automatically creates a unique DNS profile for each user that blocks revenuecat.com, ensuring the Gold subscription sticks.
  • โ€”Strict Cooldowns: Enforces a 45-second cooldown per token usage to mimic human behavior and avoid detection.

๐Ÿค– Smart Automation

  • โ€”Auto-Resolution: Just paste a Locket username or link; the bot handles UID resolution automatically.
  • โ€”Queue Management: FIFO (First-In-First-Out) queue system with live status updates to prevent API flooding.
  • โ€”Admin Dashboard: Powerful /stats command to monitor queue size, active workers, and success rates in real-time.

๐Ÿ› ๏ธ Installation

Prerequisites

Automated Setup

We provide a one-click setup script that handles virtual environments and dependencies.

bash
# 1. Clone the repository
git clone https://github.com/thanhdo1110/Locket-Gold.git
cd Locket-Gold

# 2. Run the setup script
chmod +x run.sh
./run.sh

โš™๏ธ Configuration

The system is configured via app/config.py. You must provide your API keys and Receipt Tokens here.

python
# app/config.py

# 1. System Credantials
BOT_TOKEN   = "YOUR_TELEGRAM_BOT_TOKEN_HERE"
NEXTDNS_KEY = "YOUR_NEXTDNS_API_KEY_HERE"
ADMIN_ID    = 123456789  # Replace with your Telegram User ID

# 2. Worker Settings
# Match this number to the number of Token Sets you have to ensure 1-to-1 mapping.
NUM_WORKERS = 2 

# 3. Receipt Tokens (Dumped from Jailbroken/Rooted/Nonjb Devices)
TOKEN_SETS = [
    {
        "fetch_token": "ey...",      # RevenueCat Fetch Token
        "app_transaction": "ey...",  # Apple Receipt Transaction
        "is_sandbox": False          # Must be False for Production
    },
    # Add more token sets as needed...
]

๐ŸŽฎ Commands

User Commands

Use these commands in your Telegram bot:

CommandUsageDescription
/start-Initialize the bot and show the main menu.
/setlang-Switch between English ๐Ÿ‡บ๐Ÿ‡ธ and Vietnamese ๐Ÿ‡ป๐Ÿ‡ณ.
/help-View detailed help and instructions.
Direct MessageusernameSend any Locket username or link to queue an upgrade.

Admin Commands (๐Ÿ‘‘)

Restricted to the ADMIN_ID configured in config.py.

CommandUsageDescription
/stats-View Queue Size, Active Workers, and System Health.
/noti/noti <msg>Broadcast a message to all bot users.
/rs/rs <id>Reset the daily limit for a specific user ID.
/setdonateReply to photoSet the custom "Success" image shown after activation.

๐Ÿ“Š System Architecture

mermaid
graph TD
    User([๐Ÿ‘ค User]) -->|Sends Username| Bot
    
    subgraph "๐Ÿค– Bot Core (AsyncIO)"
        Bot[Telegram Handler] -->|Enqueue| Queue[FIFO Queue]
        Queue -->|1. Pop Request| Worker[๐Ÿ‘ฑ Worker Thread]
    end
    
    subgraph "โ˜๏ธ External APIs"
        Worker -->|2. Inject Token| RC[RevenueCat API]
        Worker -->|3. Create Profile| NextDNS[NextDNS API]
    end
    
    RC -- 200 OK --> Worker
    NextDNS -- Profile Link --> Worker
    
    Worker -->|4. Success Message| Bot
    Bot -->|5. Notify User| User

โš ๏ธ Disclaimer

This project is for EDUCATIONAL and RESEARCH purposes only. The author is not responsible for any misuse of this software. By using this tool, you agree to take full responsibility for your actions. "Locket Widget" and "RevenueCat" are trademarks of their respective owners.

<div align="center">

[ Report Bug ](https://github.com/thanhdo1110/Locket-Gold/issues) โ€ข [ Request Feature ](https://github.com/thanhdo1110/Locket-Gold/issues)

Made with โค๏ธ by Thanh Do

</div>