diff --git a/README.md b/README.md index eb0bc6b..c24cc12 100644 --- a/README.md +++ b/README.md @@ -1,676 +1,407 @@ -# ๐ŸŒ Auto Wildcard Telegram Bot +# ๐ŸŒ AutoFT Bot Wildcard
-[![npm version](https://badge.fury.io/js/auto-wildcard-bot.svg)](https://www.npmjs.com/package/auto-wildcard-bot) -[![Downloads](https://img.shields.io/npm/dm/auto-wildcard-bot.svg)](https://www.npmjs.com/package/auto-wildcard-bot) +[![npm version](https://badge.fury.io/js/autoft-bot-wildcard.svg)](https://www.npmjs.com/package/autoft-bot-wildcard) +[![Downloads](https://img.shields.io/npm/dm/autoft-bot-wildcard.svg)](https://www.npmjs.com/package/autoft-bot-wildcard) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Node.js](https://img.shields.io/badge/Node.js-20%2B-green.svg)](https://nodejs.org/) -[![GitHub stars](https://img.shields.io/github/stars/AutoFTbot/Wildcard-Bot.svg?style=social&label=Star)](https://github.com/AutoFTbot/Wildcard-Bot) -**๐Ÿš€ The most advanced Telegram bot for automated Cloudflare wildcard domain management** +**๐Ÿš€ Advanced Telegram Bot for Automated Cloudflare Wildcard Domain Management** -[๐Ÿ“– Documentation](https://github.com/AutoFTbot/Wildcard-Bot/wiki) โ€ข [๐Ÿš€ Quick Start](#-quick-start) โ€ข [๐Ÿ’ฌ Support](https://t.me/AutoFtBot69) โ€ข [๐Ÿ› Issues](https://github.com/AutoFTbot/Wildcard-Bot/issues) +**โญ If this project is useful for you, please give it a star!** +**๐Ÿด Feel free to fork and contribute!** -
- ---- - -## ๐Ÿ“‹ Table of Contents - -- [โœจ Features](#-features) -- [๐Ÿš€ Quick Start](#-quick-start) -- [๐Ÿ“ฆ Installation](#-installation) -- [โš™๏ธ Configuration](#๏ธ-configuration) -- [๐Ÿ“ฑ Usage](#-usage) -- [๐ŸŽฏ Commands](#-commands) -- [๐Ÿ‘‘ Admin Features](#-admin-features) -- [๐Ÿ”ง Advanced Configuration](#-advanced-configuration) -- [๐Ÿš€ Deployment](#-deployment) -- [๐Ÿ› ๏ธ Development](#๏ธ-development) -- [โ“ FAQ](#-faq) -- [๐Ÿ†˜ Troubleshooting](#-troubleshooting) -- [๐Ÿค Contributing](#-contributing) -- [๐Ÿ“„ License](#-license) - ---- +[๐Ÿ“ฆ NPM Package](https://www.npmjs.com/package/autoft-bot-wildcard) โ€ข [๐Ÿ“ข Updates Channel](https://t.me/AutoFtFile) โ€ข [๐Ÿ› Issues](https://github.com/AutoFTbot/Wildcard-Bot/issues) -## โœจ Features - -### ๐ŸŽฏ Core Functionality -- **๐ŸŒ Wildcard Domain Management** - Automated Cloudflare wildcard DNS setup -- **๐Ÿค– Telegram Bot Interface** - Complete bot management via Telegram -- **๐Ÿ‘ฅ Multi-User Support** - Each user manages their own domains -- **๐Ÿ” Secure Configuration** - Encrypted API key storage -- **๐Ÿ“Š Real-time Analytics** - Domain statistics and monitoring -- **โšก Lightning Fast** - Optimized for performance - -### ๐Ÿ›ก๏ธ Security & Management -- **๐Ÿ‘‘ Admin Dashboard** - Complete administrative control -- **๐Ÿ”’ Permission System** - Role-based access control -- **๐Ÿ“ข Broadcast System** - Mass communication tools -- **๐Ÿ›ก๏ธ Rate Limiting** - Built-in abuse protection -- **๐Ÿ“ Comprehensive Logging** - Detailed activity tracking - -### ๐Ÿ”ง Technical Features -- **๐Ÿ“ฆ NPM Package** - Global installation support -- **๐ŸŽจ Interactive Setup** - Beautiful CLI wizard -- **๐Ÿ”„ Auto-restart** - Process management ready -- **๐Ÿ“ฑ Telegram Notifications** - Real-time alerts -- **๐ŸŒ Environment Variables** - Flexible configuration + --- -## ๐Ÿš€ Quick Start +## โšก Quick Setup -Get your bot running in under 3 minutes! +### 1๏ธโƒฃ Install Package -### 1๏ธโƒฃ Install Globally ```bash -npm install -g auto-wildcard-bot +npm install -g autoft-bot-wildcard ``` ### 2๏ธโƒฃ Run Interactive Setup + ```bash -auto-wildcard-bot +autoft-bot-wildcard ``` ### 3๏ธโƒฃ Start Your Bot + ```bash -cd auto-wildcard-bot +cd autoft-bot-wildcard npm start ``` -**๐ŸŽ‰ That's it! Your bot is now live and ready to manage wildcard domains!** +**๐ŸŽ‰ Your bot is now live and ready!** --- -## ๐Ÿ“ฆ Installation +## ๐Ÿš€ Production Setup with PM2 -### Prerequisites -- **Node.js 20+** - [Download here](https://nodejs.org/) -- **Telegram Bot Token** - Get from [@BotFather](https://t.me/BotFather) -- **Cloudflare Account** - [Sign up here](https://cloudflare.com/) +### Install PM2 & Setup Service -### Method 1: Global Installation (Recommended) ```bash -# Install globally -npm install -g auto-wildcard-bot +# Install PM2 globally +npm install -g pm2 -# Run setup wizard -auto-wildcard-bot -``` +# Navigate to your bot directory +cd autoft-bot-wildcard -### Method 2: Local Installation -```bash -# Clone repository -git clone https://github.com/AutoFTbot/Wildcard-Bot.git -cd Wildcard-Bot +# Start bot with PM2 +pm2 start index.js --name "autoft-bot-wildcard" -# Install dependencies -npm install +# Save PM2 configuration +pm2 save -# Start bot -npm start -``` +# Enable auto-start on system boot +pm2 startup -### Method 3: Docker (Coming Soon) -```bash -docker run -d --name wildcard-bot \ - -e BOT_TOKEN=your_token \ - -e ADMIN_IDS=your_id \ - auto-wildcard-bot:latest +# Check status +pm2 status ``` ---- - -## โš™๏ธ Configuration - -### Environment Variables -Create a `.env` file in your project root: +### PM2 Management Commands -```env -# ๐Ÿค– Bot Configuration -BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz -ADMIN_IDS=123456789,987654321 +```bash +# Monitor logs +pm2 logs autoft-bot-wildcard -# ๐Ÿ“ข Notifications -TELEGRAM_GROUP_ID=-1001234567890 +# Restart bot +pm2 restart autoft-bot-wildcard -# ๐Ÿ”ง Optional Settings -MAX_CUSTOM_DOMAINS=10 -NODE_ENV=production -LOG_LEVEL=info -``` +# Stop bot +pm2 stop autoft-bot-wildcard -### Configuration File -Customize your bot behavior in `config/default.js`: +# Delete from PM2 +pm2 delete autoft-bot-wildcard -```javascript -module.exports = { - // Admin Configuration - ADMIN_IDS: [123456789, 987654321], - - // Domain Limits - MAX_CUSTOM_DOMAINS: 10, - MAX_DOMAINS_PER_USER: 5, - - // Available Domains - DEFAULT_DOMAINS: [ - 'yourdomain.com', - 'example.org', - 'demo.net' - ], - - // Notification Settings - NOTIFICATIONS: { - TELEGRAM: { - enabled: true, - groupId: process.env.TELEGRAM_GROUP_ID || '', - }, - }, - - // Security Settings - FORBIDDEN_KEYWORDS: [ - 'admin', 'root', 'api', 'mail' - ], - - // Rate Limiting - RATE_LIMITS: { - SETUP_WILDCARD: { - PER_USER: 3, - COOLDOWN: 3600 - } - } -}; +# Monitor all processes +pm2 monit ``` --- -## ๐Ÿ“ฑ Usage +## โœจ Features + +
-### For End Users +| ๐Ÿค– **Bot Interface** | ๐ŸŒ **Cloudflare** | ๐Ÿ‘ฅ **Multi-User** | ๐Ÿ” **Secure** | +|:---:|:---:|:---:|:---:| +| Complete Telegram management | Automated DNS setup | Individual domain control | Safe API storage | -#### 1. Initial Setup -``` -/start โ†’ Welcome message and setup guide -/addcf โ†’ Register Cloudflare credentials -``` +| ๐Ÿ“Š **Analytics** | ๐Ÿ“ข **Notifications** | ๐ŸŽจ **Easy Setup** | โšก **Performance** | +|:---:|:---:|:---:|:---:| +| Real-time statistics | Instant Telegram alerts | Interactive CLI wizard | Lightweight & fast | -#### 2. Domain Management -``` -/listdomain โ†’ View available domains -/setupwildcard example.com โ†’ Setup wildcard for domain -/new subdomain.example.com โ†’ Create custom subdomain -/mysub โ†’ View your subdomains -``` +
-#### 3. Analytics & Monitoring -``` -/analytics example.com โ†’ View domain statistics -/clearcache example.com โ†’ Clear Cloudflare cache -``` +--- -### For Bot Owners (Admins) +## ๐ŸŽฏ Quick Commands -#### 1. User Management -``` -/stats โ†’ Bot usage statistics -/userinfo 123456789 โ†’ View user details -/broadcast Hello everyone! โ†’ Message all users +### ๐Ÿ”ฐ Basic Usage +```bash +/start # Start the bot +/addcf # Add Cloudflare credentials +/listdomain # Show available domains +/setupwildcard example.com # Setup wildcard domain +/mysub # View your subdomains ``` -#### 2. System Management -``` -/testnotif โ†’ Test notification system +### ๐Ÿ‘‘ Admin Commands +```bash +/stats # Bot statistics +/broadcast # Send to all users +/userinfo # User details +/testnotif # Test notifications ``` --- -## ๐ŸŽฏ Commands - -### ๐Ÿ”ฐ Basic Commands -| Command | Description | Usage | -|---------|-------------|-------| -| `/start` | Welcome message & setup guide | `/start` | -| `/help` | Show all available commands | `/help` | -| `/ping` | Check bot responsiveness | `/ping` | - -### ๐Ÿ”ง Configuration Commands -| Command | Description | Usage | -|---------|-------------|-------| -| `/addcf` | Add Cloudflare credentials | `/addcf ` | -| `/cfconfig` | View current configuration | `/cfconfig` | -| `/updatecf` | Update Cloudflare credentials | `/updatecf ` | -| `/deletecf` | Remove configuration | `/deletecf` | - -### ๐ŸŒ Domain Management Commands -| Command | Description | Usage | -|---------|-------------|-------| -| `/listdomain` | Show available domains | `/listdomain` | -| `/setupwildcard` | Setup wildcard domain | `/setupwildcard ` | -| `/new` | Create custom subdomain | `/new ` | -| `/mysub` | View your subdomains | `/mysub` | -| `/searchdomain` | Search domains | `/searchdomain ` | -| `/delsub` | Delete subdomain | `/delsub ` | - -### ๐Ÿ“Š Analytics Commands -| Command | Description | Usage | -|---------|-------------|-------| -| `/analytics` | View domain statistics | `/analytics ` | -| `/clearcache` | Clear Cloudflare cache | `/clearcache ` | - ---- +## โš™๏ธ Configuration -## ๐Ÿ‘‘ Admin Features +### Required Environment -### ๐Ÿ“Š Statistics Dashboard -``` -๐Ÿ“Š BOT STATISTICS - -๐Ÿ‘ฅ Users & Domains: -โ€ข Registered Users: 150 -โ€ข Active Domains: 45 -โ€ข Total Subdomains: 1,234 +- **Node.js 20+** - [Download here](https://nodejs.org/) +- **Telegram Bot Token** - Get from [@BotFather](https://t.me/BotFather) +- **Cloudflare Account** - [Sign up here](https://cloudflare.com/) -โšก System Status: -โ€ข Uptime: 7d 12h 30m -โ€ข Memory Usage: 45.2 MB -โ€ข Node.js Version: v20.10.0 +### Environment Variables -๐Ÿค– Bot Info: -โ€ข Bot Username: @YourWildcardBot -โ€ข Last Updated: 2024-01-15 14:30:25 -``` +```env +# ๐Ÿค– Bot Configuration +BOT_TOKEN=your_bot_token_here +ADMIN_IDS=123456789 -### ๐Ÿ“ข Broadcast System -Send messages to all registered users: -``` -/broadcast ๐Ÿšจ Scheduled maintenance in 1 hour. All services will be temporarily unavailable. -``` +# ๐Ÿ“ข Optional: Notifications +TELEGRAM_GROUP_ID=-1001234567890 -### ๐Ÿ‘ค User Management -Get detailed user information: -``` -/userinfo 123456789 - -๐Ÿ‘ค USER INFORMATION -๐Ÿ†” User ID: 123456789 -๐Ÿ“ฑ Telegram: @username (John Doe) -๐Ÿ“ง Cloudflare Email: user@example.com -๐ŸŒ Custom Domains: 5 -๐Ÿ“… Registration: 2024-01-10 09:15:32 +# ๐Ÿ”ง Optional: Settings +MAX_CUSTOM_DOMAINS=5 +NODE_ENV=production ``` --- -## ๐Ÿ”ง Advanced Configuration - -### Custom Domain Setup -Add your own domains to the bot: - -```javascript -// config/default.js -DEFAULT_DOMAINS: [ - 'your-domain.com', - 'another-domain.net', - 'example.org' -] -``` +## ๐Ÿ“š Documentation -### Notification Customization -Configure Telegram notifications: +
-```javascript -NOTIFICATIONS: { - TELEGRAM: { - enabled: true, - groupId: process.env.TELEGRAM_GROUP_ID, - // Custom message templates - templates: { - welcome: '๐ŸŽ‰ New user registered: {username}', - domainSetup: '๐ŸŒ Wildcard setup: {domain} by {user}' - } - } -} -``` +| ๐Ÿ“– **Guide** | ๐Ÿ”ง **Setup** | ๐Ÿ†˜ **Help** | ๐Ÿš€ **Start** | +|:---:|:---:|:---:|:---:| +| [Commands](wiki/Commands.md) | [Configuration](wiki/Configuration.md) | [Troubleshooting](wiki/Troubleshooting.md) | [Quick Start](wiki/Quick-Start.md) | -### Rate Limiting Configuration -Prevent abuse with custom rate limits: +[๐Ÿ  **Complete Wiki**](wiki/Home.md) -```javascript -RATE_LIMITS: { - SETUP_WILDCARD: { - PER_USER: 5, // Max 5 setups per user - COOLDOWN: 3600 // 1 hour cooldown - }, - ANALYTICS: { - PER_USER: 10, // Max 10 requests per hour - COOLDOWN: 300 // 5 minutes between requests - } -} -``` +
--- -## ๐Ÿš€ Deployment - -### Production Deployment with PM2 -```bash -# Install PM2 globally -npm install -g pm2 +## ๐Ÿ’ Support the Project -# Start bot with PM2 -pm2 start index.js --name "wildcard-bot" +
-# Enable auto-restart on server reboot -pm2 startup -pm2 save +### ๐Ÿ’ฐ Donate via QRIS (Indonesia) -# Monitor logs -pm2 logs wildcard-bot +![QRIS Donation](https://raw.githubusercontent.com/AutoFTbot/AutoFTbot/refs/heads/main/assets/QRIS.jpg) -# Restart bot -pm2 restart wildcard-bot -``` +**Your donation helps us maintain and improve this project!** -### Environment Setup for Production -```bash -# Set production environment -export NODE_ENV=production +### ๐ŸŒŸ Other Ways to Support -# Increase memory limit if needed -node --max-old-space-size=2048 index.js -``` +[![Star](https://img.shields.io/badge/โญ-Star%20this%20repo-yellow?style=for-the-badge)](https://github.com/AutoFTbot/Wildcard-Bot) +[![Fork](https://img.shields.io/badge/๐Ÿด-Fork%20&%20Share-blue?style=for-the-badge)](https://github.com/AutoFTbot/Wildcard-Bot/fork) +[![Issues](https://img.shields.io/badge/๐Ÿ›-Report%20Bugs-red?style=for-the-badge)](https://github.com/AutoFTbot/Wildcard-Bot/issues) -### Nginx Reverse Proxy (Optional) -If you plan to add webhooks: - -```nginx -server { - listen 80; - server_name your-bot-domain.com; - - location /webhook { - proxy_pass http://localhost:3000; - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection 'upgrade'; - proxy_set_header Host $host; - proxy_cache_bypass $http_upgrade; - } -} -``` +
--- -## ๐Ÿ› ๏ธ Development - -### Project Structure -``` -auto-wildcard-bot/ -โ”œโ”€โ”€ ๐Ÿ“ bin/ -โ”‚ โ””โ”€โ”€ wildcard-bot.js # CLI entry point -โ”œโ”€โ”€ ๐Ÿ“ config/ -โ”‚ โ”œโ”€โ”€ constants.js # Application constants -โ”‚ โ””โ”€โ”€ default.js # Default configuration -โ”œโ”€โ”€ ๐Ÿ“ handlers/ -โ”‚ โ”œโ”€โ”€ adminHandlers.js # Admin command handlers -โ”‚ โ”œโ”€โ”€ cloudflareHandlers.js # Cloudflare operations -โ”‚ โ”œโ”€โ”€ configHandlers.js # Configuration management -โ”‚ โ”œโ”€โ”€ domainHandlers.js # Domain operations -โ”‚ โ””โ”€โ”€ generalHandlers.js # General bot commands -โ”œโ”€โ”€ ๐Ÿ“ lib/ -โ”‚ โ””โ”€โ”€ WildcardBot.js # Main bot class -โ”œโ”€โ”€ ๐Ÿ“ services/ -โ”‚ โ”œโ”€โ”€ CloudflareManager.js # Cloudflare API wrapper -โ”‚ โ””โ”€โ”€ NotificationService.js # Notification system -โ”œโ”€โ”€ ๐Ÿ“ utils/ -โ”‚ โ”œโ”€โ”€ fileUtils.js # File operations -โ”‚ โ”œโ”€โ”€ systemUtils.js # System utilities -โ”‚ โ””โ”€โ”€ validation.js # Input validation -โ”œโ”€โ”€ ๐Ÿ“ data/ # Bot data storage -โ”œโ”€โ”€ index.js # Application entry point -โ”œโ”€โ”€ package.json # Dependencies -โ””โ”€โ”€ README.md # Documentation -``` +## ๐Ÿ“Š Project Stats -### Running in Development Mode -```bash -# Clone repository -git clone https://github.com/AutoFTbot/Wildcard-Bot.git -cd Wildcard-Bot +
-# Install dependencies -npm install +![GitHub stars](https://img.shields.io/github/stars/AutoFTbot/Wildcard-Bot.svg?style=social&label=Star) +![GitHub forks](https://img.shields.io/github/forks/AutoFTbot/Wildcard-Bot.svg?style=social&label=Fork) +![GitHub watchers](https://img.shields.io/github/watchers/AutoFTbot/Wildcard-Bot.svg?style=social&label=Watch) -# Copy environment file -cp .env.example .env +![GitHub repo size](https://img.shields.io/github/repo-size/AutoFTbot/Wildcard-Bot) +![GitHub commit activity](https://img.shields.io/github/commit-activity/m/AutoFTbot/Wildcard-Bot) +![NPM Downloads](https://img.shields.io/npm/dt/autoft-bot-wildcard) -# Edit configuration -nano .env +
-# Start in development mode -npm run dev -``` +--- -### Code Style and Linting -```bash -# Run linter -npm run lint +## ๐Ÿ“ž Support & Community -# Fix linting issues -npm run lint:fix +
-# Format code -npm run format +[![Telegram Channel](https://img.shields.io/badge/๐Ÿ“ข%20Updates-Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/AutoFtFile) +[![GitHub Issues](https://img.shields.io/badge/๐Ÿ›%20Issues-GitHub-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/AutoFTbot/Wildcard-Bot/issues) +[![Developer](https://img.shields.io/badge/๐Ÿ‘จโ€๐Ÿ’ป%20Developer-Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/AutoFtBot69) -# Run all checks -npm run check -``` +
-### Testing -```bash -# Test configuration -npm run test:config +--- -# Test notifications -npm run test:notifications +## ๐Ÿ“„ License -# Test Cloudflare connection -npm run test:cloudflare -``` +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. --- -## โ“ FAQ +## ๐ŸŒ Web Dashboard (Coming Soon) -### **Q: How do I get a Telegram Bot Token?** -A: Message [@BotFather](https://t.me/BotFather) on Telegram, use `/newbot` command, and follow the instructions. +
-### **Q: Where do I find my Cloudflare Global API Key?** -A: Go to [Cloudflare Dashboard](https://dash.cloudflare.com) โ†’ My Profile โ†’ API Tokens โ†’ Global API Key โ†’ View +### ๐ŸŽจ Modern Web Interface -### **Q: How do I get my Telegram ID?** -A: Message [@userinfobot](https://t.me/userinfobot) on Telegram to get your user ID. +**Manage your wildcard domains from anywhere with our upcoming web dashboard!** -### **Q: Can I use custom domains?** -A: Yes! Add your domains to the `DEFAULT_DOMAINS` array in `config/default.js`. +![Web Dashboard Preview](https://via.placeholder.com/800x400/2ea44f/ffffff?text=AutoFT+Web+Dashboard+Coming+Soon) -### **Q: Is there a limit on users or domains?** -A: You can configure limits in `config/default.js`. Default is 5 domains per user. +
-### **Q: How do I update the bot?** -A: Run `npm update -g auto-wildcard-bot` for global installations. +### ๐Ÿš€ Planned Features ---- - -## ๐Ÿ†˜ Troubleshooting +
-### Common Issues +| ๐Ÿ“Š **Analytics** | ๐ŸŽ›๏ธ **Control Panel** | ๐Ÿ‘ฅ **User Management** | ๐Ÿ”” **Notifications** | +|:---:|:---:|:---:|:---:| +| Real-time domain stats | Drag & drop interface | Role-based access | Live activity feed | +| Traffic monitoring | Bulk operations | Team collaboration | Custom alerts | +| Performance insights | Quick actions | Permission controls | Email & Telegram | -#### ๐Ÿ”ด Bot not responding -```bash -# Check if bot is running -ps aux | grep node +
-# Check logs -pm2 logs wildcard-bot +### ๐Ÿ› ๏ธ Tech Stack -# Restart bot -pm2 restart wildcard-bot +```javascript +// Modern web technologies planned +{ + "frontend": ["React", "Next.js", "TailwindCSS", "Chart.js"], + "backend": ["Node.js", "Express", "Socket.io", "JWT"], + "database": ["MongoDB", "Redis"], + "deployment": ["Docker", "Nginx", "PM2"] +} ``` -#### ๐Ÿ”ด "Bot token invalid" error -- Verify your bot token in `.env` file -- Make sure token format is correct: `1234567890:ABCdefGHIjklMNOpqrsTUVwxyz` -- Check if bot was deleted in @BotFather +### ๐ŸŽฏ Web Features Roadmap -#### ๐Ÿ”ด Cloudflare API errors -- Verify Global API Key and email in user configuration -- Check if domain is added to Cloudflare account -- Ensure API key has necessary permissions +- [ ] ๐ŸŽจ **Q2 2024**: Modern dashboard UI/UX +- [ ] ๐Ÿ“Š **Q2 2024**: Real-time analytics & charts +- [ ] ๐Ÿ‘ฅ **Q3 2024**: Multi-user management portal +- [ ] ๐Ÿ” **Q3 2024**: Advanced security & 2FA +- [ ] ๐Ÿ“ฑ **Q4 2024**: Mobile-responsive design +- [ ] ๐ŸŒ **Q4 2024**: Multi-language support +- [ ] ๐Ÿ”— **2025**: REST API & webhooks +- [ ] โšก **2025**: GraphQL integration -#### ๐Ÿ”ด Notifications not working -- Verify `TELEGRAM_GROUP_ID` in environment variables -- Make sure bot is added to the notification group -- Check if bot has permission to send messages +### ๐Ÿ’ก Sneak Peek -#### ๐Ÿ”ด Domain setup fails -- Ensure domain is registered in Cloudflare -- Check DNS propagation status -- Verify Cloudflare account permissions +
-### Debug Mode -Enable detailed logging: -```bash -export LOG_LEVEL=debug -npm start +**๐ŸŽ›๏ธ Dashboard Overview** +``` +โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” +โ”‚ AutoFT Web Dashboard ๐Ÿ”” ๐Ÿ“Š โ”‚ +โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค +โ”‚ ๐Ÿ“ˆ Analytics ๐ŸŒ Domains ๐Ÿ‘ฅ Users โš™๏ธ โ”‚ +โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค +โ”‚ โ”‚ +โ”‚ ๐ŸŽฏ Quick Actions โ”‚ +โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ Add Domain โ”‚ โ”‚ Setup Wild โ”‚ โ”‚ View Logs โ”‚ โ”‚ +โ”‚ โ”‚ + โ”‚ โ”‚ *. โ”‚ โ”‚ ๐Ÿ“‹ โ”‚ โ”‚ +โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ +โ”‚ โ”‚ +โ”‚ ๐Ÿ“Š Domain Statistics โ”‚ +โ”‚ โ”Œโ”€ example.com โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 89% โ”€โ”€โ” โ”‚ +โ”‚ โ”Œโ”€ demo.net โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 76% โ”€โ”€โ” โ”‚ +โ”‚ โ”Œโ”€ test.org โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ 45% โ”€โ”€โ” โ”‚ +โ”‚ โ”‚ +โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` -### Getting Help -1. Check our [Wiki](https://github.com/AutoFTbot/Wildcard-Bot/wiki) -2. Search [existing issues](https://github.com/AutoFTbot/Wildcard-Bot/issues) -3. Join our [Telegram group](https://t.me/AutoFtBot69) -4. Create a [new issue](https://github.com/AutoFTbot/Wildcard-Bot/issues/new) - ---- +
-## ๐Ÿค Contributing +### ๐ŸŽช Interactive Demo -We welcome contributions! Here's how you can help: +Want early access to the web dashboard? Join our beta program! -### ๐Ÿ› Bug Reports -- Use the [issue template](https://github.com/AutoFTbot/Wildcard-Bot/issues/new?template=bug_report.md) -- Include detailed reproduction steps -- Provide relevant logs and screenshots +
-### โœจ Feature Requests -- Check [existing requests](https://github.com/AutoFTbot/Wildcard-Bot/issues?q=is%3Aissue+is%3Aopen+label%3Aenhancement) -- Use the [feature template](https://github.com/AutoFTbot/Wildcard-Bot/issues/new?template=feature_request.md) -- Explain the use case and benefits +[![Beta Access](https://img.shields.io/badge/๐ŸŒŸ-Join%20Beta%20Program-ff6b6b?style=for-the-badge)](https://t.me/AutoFtFile) +[![Web Demo](https://img.shields.io/badge/๐ŸŒ-View%20Demo-4ecdc4?style=for-the-badge)](https://demo.autoft-bot.com) -### ๐Ÿ’ป Code Contributions -1. Fork the repository -2. Create a feature branch: `git checkout -b feature/amazing-feature` -3. Make your changes and test thoroughly -4. Follow our coding standards (run `npm run lint`) -5. Commit with clear messages: `git commit -m 'Add amazing feature'` -6. Push to your branch: `git push origin feature/amazing-feature` -7. Open a Pull Request +**๐Ÿ“ข Get notified when web dashboard launches!** -### ๐Ÿ“š Documentation -- Improve existing documentation -- Add examples and use cases -- Translate to other languages -- Create video tutorials +
--- -## ๐Ÿ“ˆ Roadmap +## ๐Ÿ‘จโ€๐Ÿ’ป For Developers -### ๐Ÿš€ Upcoming Features -- [ ] **Web Dashboard** - Browser-based management interface -- [ ] **Docker Support** - Containerized deployment -- [ ] **Multi-language** - Support for multiple languages -- [ ] **Advanced Analytics** - Detailed usage statistics -- [ ] **Custom Commands** - User-defined bot commands -- [ ] **Backup System** - Automated data backups -- [ ] **Plugin System** - Extensible architecture +
-### ๐ŸŽฏ Long-term Goals -- [ ] **Cloud Hosting** - Managed hosting service -- [ ] **Mobile App** - Native mobile application -- [ ] **Enterprise Features** - Advanced business features -- [ ] **API Gateway** - RESTful API interface +**Join our development team and help build the future of domain management!** ---- +
-## ๐Ÿ“Š Statistics +### ๐Ÿš€ Development Stack -
+```bash +# Current Bot Architecture +โ”œโ”€โ”€ ๐Ÿค– Telegram Bot (Node.js + Telegraf) +โ”œโ”€โ”€ โ˜๏ธ Cloudflare API Integration +โ”œโ”€โ”€ ๐Ÿ“Š Real-time Analytics +โ””โ”€โ”€ ๐Ÿ”ง PM2 Process Management -![GitHub repo size](https://img.shields.io/github/repo-size/AutoFTbot/Wildcard-Bot) -![GitHub code size](https://img.shields.io/github/languages/code-size/AutoFTbot/Wildcard-Bot) -![Lines of code](https://img.shields.io/tokei/lines/github/AutoFTbot/Wildcard-Bot) -![GitHub commit activity](https://img.shields.io/github/commit-activity/m/AutoFTbot/Wildcard-Bot) +# Upcoming Web Stack +โ”œโ”€โ”€ โš›๏ธ Frontend (React + Next.js + TailwindCSS) +โ”œโ”€โ”€ ๐Ÿ—„๏ธ Backend (Node.js + Express + Socket.io) +โ”œโ”€โ”€ ๐Ÿ’พ Database (MongoDB + Redis) +โ””โ”€โ”€ ๐Ÿณ DevOps (Docker + Nginx + GitHub Actions) +``` -
+### ๐Ÿ› ๏ธ Contributing Areas ---- +
-## ๐Ÿ“„ License +| ๐ŸŽจ **Frontend** | ๐Ÿ”ง **Backend** | ๐Ÿ“ฑ **Mobile** | ๐Ÿงช **Testing** | +|:---:|:---:|:---:|:---:| +| React/Next.js | Node.js/Express | React Native | Jest/Cypress | +| UI/UX Design | API Development | iOS/Android | Performance | +| Dashboard | Database Design | PWA | Security | -This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. +
-``` -MIT License +### ๐ŸŽฏ Open Opportunities -Copyright (c) 2024 AutoFTbot Team +- ๐ŸŽจ **UI/UX Designer** - Design the web dashboard interface +- โš›๏ธ **React Developer** - Build responsive frontend components +- ๐Ÿ”ง **Backend Developer** - API & database architecture +- ๐Ÿ“ฑ **Mobile Developer** - React Native mobile app +- ๐Ÿงช **QA Engineer** - Testing & automation +- ๐Ÿ“ **Technical Writer** - Documentation & tutorials +- ๐ŸŒ **Translator** - Multi-language support -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +### ๐Ÿ’ก Quick Start Development -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. -``` +```bash +# Clone the repository +git clone https://github.com/AutoFTbot/Wildcard-Bot.git +cd Wildcard-Bot ---- +# Install dependencies +npm install -## ๐Ÿ™ Acknowledgments +# Set up development environment +cp .env.example .env.dev +nano .env.dev -- **Telegraf.js** - Telegram Bot API framework -- **Cloudflare** - DNS and CDN services -- **Node.js Community** - Runtime environment -- **Contributors** - Everyone who helped improve this project +# Start development mode +npm run dev ---- +# Run tests +npm test -## ๐Ÿ“ž Support & Community +# Build for production +npm run build +``` -
+### ๐Ÿ† Contributor Benefits -### ๐Ÿ’ฌ Get Help +- ๐ŸŒŸ **Recognition** in project credits +- ๐Ÿ“ˆ **Portfolio** enhancement with real-world project +- ๐Ÿค **Networking** with global developer community +- ๐ŸŽ“ **Learning** modern web technologies +- ๐Ÿ’ฐ **Revenue sharing** for premium features (planned) -[![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/AutoFtBot69) -[![GitHub Issues](https://img.shields.io/badge/GitHub-Issues-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/AutoFTbot/Wildcard-Bot/issues) +
-### ๐ŸŒŸ Stay Updated +[![Contribute](https://img.shields.io/badge/๐Ÿš€-Start%20Contributing-success?style=for-the-badge)](https://github.com/AutoFTbot/Wildcard-Bot/blob/main/CONTRIBUTING.md) +[![Discord](https://img.shields.io/badge/๐Ÿ’ฌ-Developer%20Chat-7289DA?style=for-the-badge&logo=discord)](https://discord.gg/autoft-dev) -[![GitHub Watch](https://img.shields.io/github/watchers/AutoFTbot/Wildcard-Bot.svg?style=social&label=Watch)](https://github.com/AutoFTbot/Wildcard-Bot) -[![GitHub Star](https://img.shields.io/github/stars/AutoFTbot/Wildcard-Bot.svg?style=social&label=Star)](https://github.com/AutoFTbot/Wildcard-Bot) -[![GitHub Fork](https://img.shields.io/github/forks/AutoFTbot/Wildcard-Bot.svg?style=social&label=Fork)](https://github.com/AutoFTbot/Wildcard-Bot) +
--- -**โญ If this project helped you, please give it a star!** +
+ +**๐ŸŒŸ If this project helped you, please consider giving it a star!** -**Made with โค๏ธ by the AutoFTbot Team** +**Made with โค๏ธ by the AutoFTbot Team** +**Developer: [@AutoFtBot69](https://t.me/AutoFtBot69)** -[๐Ÿš€ Get Started Now](https://www.npmjs.com/package/auto-wildcard-bot) โ€ข [๐Ÿ“– Read the Docs](https://github.com/AutoFTbot/Wildcard-Bot/wiki) โ€ข [๐Ÿ’ฌ Join Community](https://t.me/AutoFtBot69) +[๐Ÿš€ **Get Started Now**](https://www.npmjs.com/package/autoft-bot-wildcard) โ€ข [๐Ÿ“ข **Updates Channel**](https://t.me/AutoFtFile) โ€ข [๐Ÿ’ฐ **Donate**](https://raw.githubusercontent.com/AutoFTbot/AutoFTbot/refs/heads/main/assets/QRIS.jpg)