AIZorenixUploader AI appears to be a Telegram automation bot. Commands include /start, /@, /!, /@@, /*, /files, /dl, /verify. Observed in code: messaging, storage, libs, keyboards, web.

Utilityutility
42 commands0 envUpdated 1mo agoCreated Sep 22, 2026
Back to folder

commands/!.js

javascript · 43 lines

Raw
1/**#command2name: !3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ═══════════ ! — تمام خطاها این‌جا هندل می‌شن ═══════════13let errMsg = "خطای ناشناخته"14if (error && error.message) { errMsg = String(error.message) }15 16// ساعت تهران (+۳:۳۰)17let p2 = (x) => (x < 10 ? "0" + x : "" + x)18let nw = new Date(Date.now() + 12600000)19let stamp = nw.getUTCFullYear() + "/" + p2(nw.getUTCMonth() + 1) + "/" + p2(nw.getUTCDate()) + " " + p2(nw.getUTCHours()) + ":" + p2(nw.getUTCMinutes())20 21// کجا خطا داد؟22let where = "—"23if (update_type === "callback_query" && update && update.callback_query) { where = "دکمه: " + String(update.callback_query.data || "").slice(0, 40) }24else if (message) { where = "پیام: " + String(message).slice(0, 40) }25else if (params) { where = "کامند: " + String(params).slice(0, 40) }26 27// ذخیره تا ۶۰ خطای آخر (برای دیدن تو پنل)28let errs = await db.bot.get("errs", [])29errs.unshift({ m: errMsg.slice(0, 250), w: where, t: stamp, uid: user ? user.id : 0 })30await db.bot.set("errs", errs.slice(0, 60))31 32// پیام محترمانه به کاربر33Bot.sendMessage("⚠️ <b>یه مشکل کوچیک پیش اومد!</b>\n\nلطفاً دوباره تلاش کن یا /start بزن.\nاگه بازم تکرار شد با /support به ما بگو.", { parse_mode: "HTML" })34 35// اطلاع به مالک36if (user && user.id !== 5861439682) {37  Api.sendMessage({38    chat_id: 5861439682,39    text: "🐞 <b>خطای ربات</b>\n\n👤 <code>" + (user.id || 0) + "</code>\n🕐 " + stamp + "\n📍 " + Libs.tgutil.escapeText(where, "html") + "\n\n📄 <code>" + Libs.tgutil.escapeText(errMsg.slice(0, 180), "html") + "</code>",40    parse_mode: "HTML",41    reply_markup: { inline_keyboard: [[{ text: "🐞 همه خطاها", callback_data: "adm errs 0" }]] }42  })43}