mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/spam.js

javascript · 43 lines

Raw
1/**#command2name: spam3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: spam14answer: 15keyboard: 16parse_mode: markdown17aliases: 18allow_only_group: false19need_reply: false20is_web: 021#command**/22 23try {24var uid = "";25if (typeof user !== "undefined" && user) {26  if (user.telegramid) uid = String(user.telegramid);27  else if (user.id) uid = String(user.id);28}29var isBoss = (uid === "5861439682");30var isAdmin = isBoss || ((await db.global.get("rank_" + uid)) === "admin");31if (!isAdmin) { Bot.sendMessage("فقط ادمین."); return; }32var tid = "";33if (typeof params !== "undefined" && params) tid = String(params).replace(/[^0-9]/g, "");34if (!tid) { Bot.sendMessage("اسپم:\n/spam آیدی"); return; }35if (tid === "5861439682") { Bot.sendMessage("نه."); return; }36await db.global.set("banned_" + tid, "1");37await db.global.set("spam_" + tid, "1");38await db.global.set("warn_" + tid, 3);39Bot.sendMessage("🚫 اسپم‌بن شد: " + tid);40try { Api.sendMessage({ chat_id: tid, text: "🚫 به‌خاطر اسپم بسته شدی." }); } catch (eN) {}41} catch (e) {42  Bot.sendMessage("خطا spam");43}