mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

Utilityutility
ProfileTelegram
455 commands2 envUpdated 7h agoCreated Aug 26, 2026
Back to folder

commands/_tarot.js

javascript · 62 lines

Raw
1/**#command2name: /tarot3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: /tarot14answer: 15keyboard: 16parse_mode: markdown17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23// فال تاروت — پاسخ به کامند onTarotSuccess می‌رود (کارت‌ها هم نمایش داده می‌شود)24let intent = params ? params.trim() : "نیت کلی زندگی، کار و احساسی";25 26Api.sendMessage({27  text: "🔮 در حال چیدن کارت‌های تاروت...\n\nنیت خود را در ذهن مرور کنید ⏳"28});29 30let cards = ["خورشید ☀️", "ماه 🌙", "برج ⚡️", "عشاق ❤️", "ستاره ⭐️", "جادوگر 🪄", "جهان 🌍", "کاهن اعظم 🏛", "چرخ بخت 🎡", "قدرت 🦁", "امپراطور 👑", "دگرگونی 🦋"];31let c1 = cards[Math.floor(Math.random() * cards.length)];32let c2 = cards[Math.floor(Math.random() * cards.length)];33let c3 = cards[Math.floor(Math.random() * cards.length)];34let cardNames = "۱. گذشته: " + c1 + " | ۲. حال: " + c2 + " | ۳. آینده: " + c3;35 36let cid = String((chat && (chat.chatid || chat.id)) || (user && (user.telegramid || user.id)) || "");37try {38  await db.global.set("last_tarot_cards_" + cid, cardNames);39  await db.global.set("last_tarot_intent_" + cid, intent);40} catch (eS) {}41 42let promptText = "نیت کاربر: " + intent + " | ۳ کارت کشیده شده برای او: " + cardNames;43 44HTTP.post({45  url: "https://api.groq.com/openai/v1/chat/completions",46  headers: {47    "Authorization": "Bearer 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"48  },49  body: {50    model: "openai/gpt-oss-20b",51    messages: [52      {53        role: "system",54        content: "تو یک مفسر و روانشناس طالع‌بینی و فال تاروت بسیار دانا، عمیق و پرانرژی به نام Zorenix Tarot هستی. برای کارت‌های کشیده شده تفسیری عمیق، خواندنی و امیدوارکننده به زبان فارسی در ۳ بخش (گذشته، حال و آینده) و یک توصیهٔ نهایی ارائه بده. از پیش‌گویی قطعی دربارهٔ مرگ، بیماری، طلاق یا ضرر مالی پرهیز کن و همیشه امیدبخش و مسئولانه حرف بزن."55      },56      { role: "user", content: promptText }57    ]58  },59  background: true,60  success: "onTarotSuccess",61  error: "/onAiError"62});