mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/zcin.js

javascript · 81 lines

Raw
1/**#command2name: zcin3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: zcin14answer: 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 text = "";33if (typeof params !== "undefined" && params) text = String(params).trim();34if (!text && typeof message !== "undefined" && message) {35  if (typeof message === "object") text = String(message.text || message.caption || "");36  else text = String(message);37}38text = String(text || "").trim();39 40if (text === "لغو" || text === "🔴 لغو") {41  await db.global.set("await_plus_" + uid, "");42  await db.global.set("plus_mode_" + uid, "");43  Bot.sendMessage("لغو شد");44  return;45}46var raw = String(text);47var isRial = (raw.indexOf("rial") >= 0 || raw.indexOf("ریال") >= 0);48var isZc = (raw.toLowerCase().indexOf("zc") >= 0 || raw.indexOf("زور") >= 0 || raw.indexOf("کوین") >= 0);49var num = parseFloat(String(text).replace(/[^0-9.]/g, "")) || 0;50if (num <= 0) { Bot.sendMessage("یک عدد بفرست. مثال ۵۰ یا ۵۰۰۰۰"); return; }51var TM = 1000;52var zc = 0;53var tm = 0;54var rl = 0;55var kind = "";56if (isRial) {57  rl = num;58  tm = rl / 10;59  zc = tm / TM;60  kind = "ریال →";61} else if (!isZc && num >= 500) {62  tm = num;63  zc = tm / TM;64  rl = tm * 10;65  kind = "تومان →";66} else {67  zc = num;68  tm = zc * TM;69  rl = tm * 10;70  kind = "ZC →";71}72Bot.sendMessage(73  "✦ تبدیل شیشه\n───────────────\n" +74  kind + "\n" +75  zc + " ZC\n" +76  tm + " تومان\n" +77  rl + " ریال\n\n" +78  "نرخ: ۱ ZC = ۱۰۰۰ تومان = ۱۰٬۰۰۰ ریال"79);80 81} catch (e) { Bot.sendMessage("خطا zcin"); }