@woai
π§Ή Major code cleanup and internationalization - Remove Russian comments/strings, translate UI to English, clean linter errors, remove hardcoded tokens, delete test files. Ready for production deployment
e775565
| #!/usr/bin/env python3 | |
| """ | |
| TubeMeta Telegram Bot Launcher | |
| Run this script to start the Telegram bot that integrates with the MCP server. | |
| """ | |
| import asyncio | |
| import sys | |
| import logging | |
| from telegram_bot import main | |
| def setup_logging(): | |
| """Setup logging configuration""" | |
| logging.basicConfig( | |
| level=logging.INFO, | |
| format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
| handlers=[ | |
| logging.FileHandler('telegram_bot.log'), | |
| logging.StreamHandler(sys.stdout) | |
| ] | |
| ) | |
| if __name__ == "__main__": | |
| print("π€ Starting TubeMeta Telegram Bot...") | |
| print("π Make sure your MCP server is running at: https://youtube-bot.tuttech.net") | |
| print("π± Bot username: @tubemeta_bot") | |
| print("π Bot link: https://t.me/tubemeta_bot") | |
| print("βΉοΈ Press Ctrl+C to stop\n") | |
| setup_logging() | |
| try: | |
| asyncio.run(main()) | |
| except KeyboardInterrupt: | |
| print("\nπ Bot stopped by user") | |
| except Exception as e: | |
| print(f"β Error starting bot: {e}") | |
| logging.error(f"Bot startup error: {e}") | |
| sys.exit(1) |