mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/typbet.js

javascript · 42 lines

Raw
1/**#command2name: typbet3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: typbet14answer: 15keyboard: 16parse_mode: 17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23try {24try { Api.answerCallbackQuery({}); } catch (e0) {}25var uid = "";26if (typeof user !== "undefined" && user) {27  if (user.telegramid) uid = String(user.telegramid);28  else if (user.id) uid = String(user.id);29}30if (!uid) return;31 32var host = String((await db.global.get("typ_host_" + uid)) || uid);33if (uid !== host) { Bot.sendMessage("فقط میزبان شرط را می‌گذارد."); return; }34var bet = parseInt(await db.global.get("typ_bet_" + host) || 0) || 0;35if (bet === 0) bet = 5;36else if (bet === 5) bet = 20;37else bet = 0;38await db.global.set("typ_bet_" + host, bet);39Bot.sendMessage("شرط شد: " + bet + " ZC برای هر نفر.\nدوباره چالش را باز کن.");40try { Bot.runCommand("typ"); } catch (e1) {}41 42} catch (e) { Bot.sendMessage("خطا typbet"); }