A comprehensive Telegram bot offering advanced multi-role AI assistance, administrative tools, support system, and extensive utilities.
- Enhanced Download API: Upgraded to more reliable download endpoints with proper authentication
- Bug Fixes: Fixed timezone references in menu commands and video download methods
- Improved Error Handling: Better API error handling for more stable downloads
- Performance Optimization: Optimized API calls with consistent quality displays
- Maintained Features: All existing Cool Shot AI V2 features preserved during integration
- โ API Authentication: Proper API key usage for more reliable downloads
- โ Menu Bug Fix: Fixed timezone display issues in system menus
- โ Download Improvements: Enhanced ytmp3, ytmp4, play, and video commands
- โ Quality Consistency: Standardized quality displays (128Kbps audio, 720p video)
- โ Error Messages: Better error feedback for failed operations
WhatsApp Channel: https://whatsapp.com/channel/0029VbAlmwn8V0tmhrtxSH0x
- 7 AI Personalities: Default, Teacher, Programmer, Creative Writer, Data Analyst, Casual Friend, Professional
- Smart Role Switching: Users can switch between AI roles for specialized assistance
- Contextual Responses: Each role provides tailored responses based on their expertise
- Role History: Track and manage role changes
- 12 Languages Supported: English, Spanish, French, German, Italian, Portuguese, Russian, Japanese, Korean, Chinese, Hindi, Arabic
- Localized Interface: Bot messages adapt to user's selected language
- Easy Language Switching: Simple commands and inline keyboards for language selection
- Comprehensive Statistics: User activity, command usage, system metrics
- User Management: Block/unblock users, set premium status, view user info
- Group Management: Enable/disable bot in groups, manage group settings
- Command Analytics: Top commands, usage trends, performance metrics
- System Monitoring: Uptime, memory usage, bot health
- Targeted Broadcasting: Send messages to all users, groups, or premium users
- Delivery Tracking: Monitor message delivery success/failure rates
- Admin Controls: Create and manage broadcast campaigns
- Comprehensive Ticketing: Create, manage, and track support requests
- Priority Levels: Low, Medium, High, Urgent priority classification
- Category System: Technical, Feature Request, Bug Report, Account, General, Other
- Status Tracking: Open, In Progress, Waiting, Resolved, Closed
- Admin Tools: Assign tickets, update status, reply to users
- Statistics: Ticket analytics and performance metrics
- Case Transformations: Upper, lower, title, camel, pascal, snake, kebab case
- Text Analysis: Word count, reading time, complexity analysis, common words
- Text Styling: Bold, italic, monospace, strikethrough, spoiler, special Unicode styles
- Encoding/Decoding: Base64, URL, HTML encoding and decoding
- Text Manipulation: Reverse, clean spaces, wrap text, extract hashtags/mentions/URLs
- Text Generation: Lorem ipsum, random passwords, random text
- User Analytics: Registration trends, activity patterns, command usage
- Performance Metrics: Response times, error rates, system performance
- Command Statistics: Most used commands, usage trends over time
- Database Insights: User growth, retention rates, feature adoption
- AI Integration: GPT, Gemini, Flux, StableDiffusion, LuminAI
- Downloaders: YouTube (MP3/MP4), APK downloader, Git clone, Play search
- Anime Content: Neko, Waifu, Konachan images
- Search Tools: Wikipedia integration
- Utilities: QR code generation, Pastebin integration
- NSFW Content: Age-restricted content (where applicable)
- Node.js 16.x or higher
- Telegram Bot Token (from @BotFather)
- Your Telegram User ID
-
Fork and Clone Repository
git clone https://github.com/RayBen445/Cool-Shot-AI-V2.git cd Cool-Shot-AI-V2 -
Install Dependencies
npm install
-
Configure Bot Settings
Edit
set.jswith your credentials:global.botToken = 'YOUR_TELEGRAM_BOT_TOKEN_HERE'; // Get from @BotFather global.ownerId = [YOUR_TELEGRAM_USER_ID]; // Your Telegram user ID global.ownerUsername = 'YOUR_USERNAME'; // Your Telegram username global.botName = '๐๐จ๐จ๐ฅ ๐๐ก๐จ๐ญ ๐๐ ๐2'; global.timeZone = 'Your/Timezone'; // e.g., 'America/New_York'
-
Start the Bot
npm start
Create a .env file for sensitive data (recommended):
TELEGRAM_TOKEN=your_bot_token_here
OWNER_ID=your_user_id_here
GIFTED_API_KEY=your_api_key_here
MAHER_API_KEY=your_api_key_here- Use Your Own Token: Always use ๐๐จ๐จ๐ฅ ๐๐ก๐จ๐ญ ๐๐ ๐2's own
TELEGRAM_TOKEN - No Credential Copying: Never copy tokens from other bots
- Secure Storage: Keep sensitive data in environment variables
/role # View current role and available options
/setrole <role_name> # Set AI role (teacher, programmer, creative, etc.)
/roles # List all available roles/language # View current language and options
/setlang <code> # Set language (en, es, fr, de, it, pt, ru, ja, ko, zh, hi, ar)/admin # Open admin control panel
/adminstats # System statistics
/userinfo <user_id> # Get user information
/blockuser <user_id> # Block/unblock user
/premium <user_id> # Set premium status
/broadcast <message> # Send broadcast message
/tickets # View all support tickets/ticket # View your tickets
/createticket # Create new support ticket
/ticket <id> # View specific ticket/textutils # Open text utilities menu
/upper <text> # Convert to UPPERCASE
/analyze <text> # Analyze text statistics
/base64encode <text> # Encode to Base64
/lorem 5 # Generate lorem ipsum (5 sentences)
/password 16 # Generate 16-character password/menu or /start # Main menu
/help # Command help
/ping # Bot response time
/system # System information
/uptime # Bot uptimeGeneral-purpose AI for everyday questions and tasks.
Educational tutor that explains concepts with examples and asks follow-up questions.
Coding expert providing technical solutions, debugging help, and best practices.
Assists with storytelling, creative content, poetry, and imaginative writing.
Helps analyze information, provides insights, and explains complex data.
Friendly companion for relaxed conversations and emotional support.
Business assistant for formal communication and professional tasks.
- Smart Language Detection: Auto-detects user preferences
- Contextual Help: Role-specific assistance and suggestions
- Interactive Menus: Intuitive inline keyboards for easy navigation
- Real-time Statistics: Live updates on bot usage and performance
Your existing bot will gain:
- Multi-role AI system
- Language support
- Admin panel
- Support tickets
- Text utilities
- Enhanced analytics
No configuration changes needed - all new features are additive.
To migrate to ๐๐จ๐จ๐ฅ ๐๐ก๐จ๐ญ ๐๐ ๐2:
- Backup Data: Export your user data and settings
- Update Token: Use ๐๐จ๐จ๐ฅ ๐๐ก๐จ๐ญ ๐๐ ๐2's
TELEGRAM_TOKEN - Configure Settings: Update
set.jswith your preferences - Import Data: User data structure is compatible
- Test Features: Verify all functionality works as expected
- Database Format: Enhanced with new fields, backward compatible
- Command Structure: All existing commands remain functional
- Plugin System: Existing plugins continue to work
- API Keys: Use your own API keys, don't copy from other bots
The bot uses a modular plugin system. Create new plugins in:
/gifted/ai/- AI-related features/gifted/general/- General utilities/gifted/tools/- Utility tools/gifted/admin/- Admin features
let myPlugin = async (m, { Gifted, text, command }) => {
// Plugin logic here
};
myPlugin.command = ['mycommand', 'alias'];
myPlugin.desc = 'Plugin description';
myPlugin.category = ['category'];
myPlugin.settings = { owner: false, group: false, private: false };
module.exports = myPlugin;- Fork this repository
- Connect to Heroku
- Set environment variables
- Deploy
- Connect GitHub repository
- Set build command:
npm install - Set start command:
npm start - Configure environment variables
# Clone repository
git clone https://github.com/RayBen445/Cool-Shot-AI-V2.git
cd Cool-Shot-AI-V2
# Install dependencies
npm install
# Configure bot
# Edit set.js with your settings
# Start bot
npm start
# Or use PM2 for production
pm2 start index.js --name "cool-shot-ai-v2"- Token Protection: Never share your bot token
- User Privacy: User data is stored locally and securely
- Admin Controls: Comprehensive user management and moderation
- Rate Limiting: Built-in protection against spam and abuse
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing-feature) - Open Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Original Bot Framework: Base bot functionality and structure
- Multi-Role AI System: Advanced AI personality system inspiration
- Professor: Bot framework and utilities
- Contributors: Everyone who helped improve this bot
- Telegram: @Prof_essor2025
- WhatsApp Channel: https://whatsapp.com/channel/0029VbAlmwn8V0tmhrtxSH0x
- Issues: GitHub Issues
- Support Ticket: Use
/createticketin the bot
Stay updated with the latest features:
- โญ Star this repository
- ๐ข Join our WhatsApp channel: https://whatsapp.com/channel/0029VbAlmwn8V0tmhrtxSH0x
- ๐ Enable GitHub notifications
ยฉ 2024-2025 ๐๐จ๐จ๐ฅ ๐๐ก๐จ๐ญ ๐๐ ๐2 - Enhanced Multi-Role AI Assistant
Advanced Telegram bot with comprehensive AI assistance, administrative tools, and utility features.