mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/shb.js

javascript · 48 lines

Raw
1/**#command2name: shb3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: shb14answer: 15keyboard: 16parse_mode: markdown17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23try {24var raw = "";25if (typeof params !== "undefined" && params) raw = String(params).trim().toUpperCase().replace(/ /g, "");26if (!raw) { Bot.sendMessage("چک شبا:\n/shb IR120170000000000000000000"); return; }27if (raw.length !== 26 || raw.slice(0, 2) !== "IR") { Bot.sendMessage("باید ۲۶ کاراکتر باشد و با IR شروع شود."); return; }28var okd = true;29var i = 0;30for (i = 2; i < 26; i++) {31  if ("0123456789".indexOf(raw.charAt(i)) < 0) okd = false;32}33if (!okd) { Bot.sendMessage("بعد از IR فقط عدد."); return; }34var t = raw.slice(4) + raw.slice(0, 4);35var rem = 0;36for (i = 0; i < t.length; i++) {37  var ch = t.charAt(i);38  var v = 0;39  if (ch >= "0" && ch <= "9") v = ch.charCodeAt(0) - 48;40  else v = ch.charCodeAt(0) - 55;41  if (v < 10) rem = (rem * 10 + v) % 97;42  else rem = (rem * 100 + v) % 97;43}44if (rem === 1) Bot.sendMessage("✅ شبا از نظر رقم کنترلی درست است.");45else Bot.sendMessage("❌ شبا غلط است.");46} catch (e) {47  Bot.sendMessage("خطا shb");48}