mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/buglist.js

javascript · 52 lines

Raw
1/**#command2name: buglist3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: buglist14answer: 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 list = [];34try { list = JSON.parse(String((await db.global.get("bug_box")) || "[]")); } catch (eL) { list = []; }35if (!list || typeof list.length !== "number") list = [];36if (list.length === 0) {37  Bot.sendMessage("صندوق باگ خالی است.\nباگ‌های کیبورد می‌روند پیوی رئیس.\nتیکت‌ها: /tckad");38  return;39}40var n = list.length;41if (n > 12) n = 12;42var txt = "🐞 صندوق باگ — " + list.length + " مورد\n───────────────\n";43var i = 0;44for (i = 0; i < n; i++) {45  var it = list[i];46  if (!it) continue;47  var body = String(it.txt || "");48  if (body.length > 180) body = body.slice(0, 180) + "...";49  txt = txt + (i + 1) + ") " + String(it.n || "") + " | " + String(it.u || "") + "\n" + body + "\n\n";50}51Bot.sendMessage(txt);52} catch (e) { Bot.sendMessage("خطا buglist"); }