mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/ffv.js

javascript · 48 lines

Raw
1/**#command2name: ffv3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: ffv14answer: 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}30var isBoss = (uid === "5861439682");31var isAdmin = isBoss || ((await db.global.get("rank_" + uid)) === "admin");32if (!isAdmin) { Bot.sendMessage("فقط ادمین"); return; }33var raw = "";34if (typeof params !== "undefined" && params) raw = String(params).replace(/[^0-9]/g, "");35if (!raw) {36  Bot.sendMessage("تیک فروشنده:\n/ffv آیدی‌عددی\nمثال: /ffv 5861439682");37  return;38}39var now = String((await db.global.get("ffw_ver_" + raw)) || "");40if (now === "1") {41  await db.global.set("ffw_ver_" + raw, "");42  Bot.sendMessage("تیک فروشنده " + raw + " برداشته شد.");43} else {44  await db.global.set("ffw_ver_" + raw, "1");45  Bot.sendMessage("✅ تیک فروشنده برای " + raw);46  try { Api.sendMessage({ chat_id: raw, text: "✅ تیک فروشنده دیوار فری‌فایر برایت فعال شد." }); } catch (eN) {}47}48} catch (e) { Bot.sendMessage("خطا ffv"); }