{"repo": "ahmadraza76/ustaad-ai-", "files": {".env": {"92dd086e8261b09a4f9d07eb03669f7ea98dc1e3": {"t": 1785745090.4771864, "n": 194, "h": "276e498e509aa2b4", "c": "API_ID=6475949\nAPI_HASH=d14fa392514e5a93e8a9e22f4c01465b\nBOT_TOKEN=7960848287:AAEoAlKMgJJsj2WNyxNCbxN0h0XKlbjzenA\nBOT_USERNAME=@UstaadAI_bot\nDEEPSEEK_API_KEY=sk-1960dac601664fa685b88b14fb66b69e\n"}, "a0f00e44dd06d29d8f870a558e4fb6e1b3a66423": {"t": 1785747737.403525, "n": 194, "h": "276e498e509aa2b4", "c": "API_ID=6475949\nAPI_HASH=d14fa392514e5a93e8a9e22f4c01465b\nBOT_TOKEN=7960848287:AAEoAlKMgJJsj2WNyxNCbxN0h0XKlbjzenA\nBOT_USERNAME=@UstaadAI_bot\nDEEPSEEK_API_KEY=sk-1960dac601664fa685b88b14fb66b69e\n"}}, "config.py": {"92dd086e8261b09a4f9d07eb03669f7ea98dc1e3": {"t": 1785745433.343292, "n": 4207, "h": "144db204261d1eea", "c": "import os\nfrom dotenv import load_dotenv\nimport logging\n\nlogger = logging.getLogger(__name__)\n\n# Load environment variables\nload_dotenv()\n\n# Bot Credentials\ntry:\n API_ID = int(os.getenv(\"API_ID\"))\n API_HASH = os.getenv(\"API_HASH\")\n BOT_TOKEN = os.getenv(\"BOT_TOKEN\")\n BOT_USERNAME = os.getenv(\"BOT_USERNAME\")\n DEEPSEEK_API_KEY = os.getenv(\"DEEPSEEK_API_KEY\")\nexcept (TypeError, ValueError) as e:\n logger.error(f\"Environment variable error: {e}\")\n raise SystemExit(\"Missing or invalid environment variables. Check .env file.\")\n\n# Image URLs\nDEFAULT_WELCOME_IMAGE = \"https://graph.org/file/a00fd3a852b79eb8f17e8-68ab656cb3a31269fe.jpg\"\nMAIN_MENU_IMG = DEFAULT_WELCOME_IMAGE\n\n# Command Categories\nCOMMAND_DETAILS = {\n \"admin_management\": {\n \"title\": \"ADMIN MANAGEMENT\",\n \"description\": \"Manage user roles and permissions\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/promote @user - Promote a user to admin\",\n \"/demote @user - Remove admin rights\",\n \"/ban @user - Ban a user from the group\",\n \"/unban @user - Unban a user\",\n \"/verify @user - Verify a user for special permissions\"\n ]\n },\n \"user_controls\": {\n \"title\": \"USER CONTROLS\",\n \"description\": \"Control group member actions\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/kick @user - Kick a user from the group\",\n \"/mute @user [duration] - Mute a user (e.g., 24h)\",\n \"/unmute @user - Unmute a user\",\n \"/ro @user [duration] - Set read-only mode (e.g., 1h)\",\n \"/unro @user - Remove read-only restriction\",\n \"/warn @user [reason] - Issue a warning\"\n ]\n },\n \"message_controls\": {\n \"title\": \"MESSAGE CONTROLS\",\n \"description\": \"Manage group messages\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/pin [reply] - Pin a message\",\n \"/unpin [reply] - Unpin a message\",\n \"/del [reply] - Delete a message\",\n \"/purge N - Delete last N messages\",\n \"/clean - Remove bot messages or spam\"\n ]\n },\n \"welcome_goodbye\": {\n \"title\": \"WELCOME/GOODBYE\",\n \"description\": \"Set up greeting messages\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/setwelcome [text] - Set custom welcome message\",\n \"/delwelcome - Delete welcome message\",\n \"/setgoodbye [text] - Set custom goodbye message\",\n \"/delgoodbye - Delete goodbye message\",\n \"/welcome on/off - Toggle welcome messages\",\n \"/goodbye on/off - Toggle goodbye messages\",\n \"/setwelcomeimage [url] - Set welcome image\"\n ]\n },\n \"automation\": {\n \"title\": \"AUTOMATION\",\n \"description\": \"Automate group tasks and replies\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/filter word response - Add auto-reply for a word\",\n \"/stop word - Remove auto-reply\",\n \"/filters - List active auto-replies\",\n \"/toggleauto on/off - Toggle automatic management\"\n ]\n },\n \"info_commands\": {\n \"title\": \"INFO COMMANDS\",\n \"description\": \"Get group and user information\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/id - Show user/chat ID\",\n \"/userinfo @user - Show user details\",\n \"/chatinfo - Show group details\",\n \"/admins - List group admins\",\n \"/stats @user - Show user activity and warnings\"\n ]\n },\n \"ai_features\": {\n \"title\": \"AI FEATURES\",\n \"description\": \"Interact with AI-powered tools\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/ask [question] - Ask AI a question\",\n \"/humanize [text] - Make text conversational\"\n ]\n },\n \"poll_system\": {\n \"title\": \"POLL SYSTEM\",\n \"description\": \"Create and manage polls in the group\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/poll \\\"Question?\\\" option1 option2 [option3 ...] [timeout] - Create a poll (e.g., 5m)\"\n ]\n }\n}\n"}, "54138cba337bb61412153e5995704da70e951642": {"t": 1785747736.5871205, "n": 4207, "h": "144db204261d1eea", "c": "import os\nfrom dotenv import load_dotenv\nimport logging\n\nlogger = logging.getLogger(__name__)\n\n# Load environment variables\nload_dotenv()\n\n# Bot Credentials\ntry:\n API_ID = int(os.getenv(\"API_ID\"))\n API_HASH = os.getenv(\"API_HASH\")\n BOT_TOKEN = os.getenv(\"BOT_TOKEN\")\n BOT_USERNAME = os.getenv(\"BOT_USERNAME\")\n DEEPSEEK_API_KEY = os.getenv(\"DEEPSEEK_API_KEY\")\nexcept (TypeError, ValueError) as e:\n logger.error(f\"Environment variable error: {e}\")\n raise SystemExit(\"Missing or invalid environment variables. Check .env file.\")\n\n# Image URLs\nDEFAULT_WELCOME_IMAGE = \"https://graph.org/file/a00fd3a852b79eb8f17e8-68ab656cb3a31269fe.jpg\"\nMAIN_MENU_IMG = DEFAULT_WELCOME_IMAGE\n\n# Command Categories\nCOMMAND_DETAILS = {\n \"admin_management\": {\n \"title\": \"ADMIN MANAGEMENT\",\n \"description\": \"Manage user roles and permissions\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/promote @user - Promote a user to admin\",\n \"/demote @user - Remove admin rights\",\n \"/ban @user - Ban a user from the group\",\n \"/unban @user - Unban a user\",\n \"/verify @user - Verify a user for special permissions\"\n ]\n },\n \"user_controls\": {\n \"title\": \"USER CONTROLS\",\n \"description\": \"Control group member actions\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/kick @user - Kick a user from the group\",\n \"/mute @user [duration] - Mute a user (e.g., 24h)\",\n \"/unmute @user - Unmute a user\",\n \"/ro @user [duration] - Set read-only mode (e.g., 1h)\",\n \"/unro @user - Remove read-only restriction\",\n \"/warn @user [reason] - Issue a warning\"\n ]\n },\n \"message_controls\": {\n \"title\": \"MESSAGE CONTROLS\",\n \"description\": \"Manage group messages\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/pin [reply] - Pin a message\",\n \"/unpin [reply] - Unpin a message\",\n \"/del [reply] - Delete a message\",\n \"/purge N - Delete last N messages\",\n \"/clean - Remove bot messages or spam\"\n ]\n },\n \"welcome_goodbye\": {\n \"title\": \"WELCOME/GOODBYE\",\n \"description\": \"Set up greeting messages\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/setwelcome [text] - Set custom welcome message\",\n \"/delwelcome - Delete welcome message\",\n \"/setgoodbye [text] - Set custom goodbye message\",\n \"/delgoodbye - Delete goodbye message\",\n \"/welcome on/off - Toggle welcome messages\",\n \"/goodbye on/off - Toggle goodbye messages\",\n \"/setwelcomeimage [url] - Set welcome image\"\n ]\n },\n \"automation\": {\n \"title\": \"AUTOMATION\",\n \"description\": \"Automate group tasks and replies\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/filter word response - Add auto-reply for a word\",\n \"/stop word - Remove auto-reply\",\n \"/filters - List active auto-replies\",\n \"/toggleauto on/off - Toggle automatic management\"\n ]\n },\n \"info_commands\": {\n \"title\": \"INFO COMMANDS\",\n \"description\": \"Get group and user information\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/id - Show user/chat ID\",\n \"/userinfo @user - Show user details\",\n \"/chatinfo - Show group details\",\n \"/admins - List group admins\",\n \"/stats @user - Show user activity and warnings\"\n ]\n },\n \"ai_features\": {\n \"title\": \"AI FEATURES\",\n \"description\": \"Interact with AI-powered tools\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/ask [question] - Ask AI a question\",\n \"/humanize [text] - Make text conversational\"\n ]\n },\n \"poll_system\": {\n \"title\": \"POLL SYSTEM\",\n \"description\": \"Create and manage polls in the group\",\n \"image\": DEFAULT_WELCOME_IMAGE,\n \"commands\": [\n \"/poll \\\"Question?\\\" option1 option2 [option3 ...] [timeout] - Create a poll (e.g., 5m)\"\n ]\n }\n}\n"}}}}