mahdiyar30301/ZorenixAI_botPublic · Bot Template

Not Bot Is Hacking You 🤣🤩

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

commands/macin.js

javascript · 67 lines

Raw
1/**#command2name: macin3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12/**#command13name: mscin14answer: 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}30if (!uid) return;31 32var text = "";33if (typeof params !== "undefined" && params) text = String(params).trim();34if (!text && typeof message !== "undefined" && message) {35  if (typeof message === "object") text = String(message.text || message.caption || "");36  else text = String(message);37}38text = String(text || "").trim();39 40if (text === "لغو" || text === "🔴 لغو") {41  await db.global.set("await_plus_" + uid, "");42  await db.global.set("plus_mode_" + uid, "");43  Bot.sendMessage("لغو شد");44  return;45}46if (!text) { Bot.sendMessage("اسم آهنگ را بنویس."); return; }47await db.global.set("await_plus_" + uid, "");48await db.global.set("plus_mode_" + uid, "");49var q = "";50var i = 0;51for (i = 0; i < text.length && i < 80; i++) {52  var ch = text.charAt(i);53  if (ch === " ") q = q + "+";54  else q = q + ch;55}56var yt = "https://www.youtube.com/results?search_query=" + q;57var sp = "https://open.spotify.com/search/" + q;58Api.sendMessage({59  text: "🎵 نتیجه برای:\n" + text.slice(0, 80) + "\n\nفایل ارسال نمی‌شود. از لینک باز کن.",60  reply_markup: { inline_keyboard: [61    [{ text: "▶ YouTube", url: yt }],62    [{ text: "🟢 Spotify", url: sp }],63    [{ text: "🎵 دوباره", callback_data: "msc" }, { text: "✨ پلاس", callback_data: "plus" }]64  ] }65});66 67} catch (e) { Bot.sendMessage("خطا mscin"); }