heheh/Gouravxhit_botPublic · Bot Template

Gouravxhit

ProfileTelegram
2 commands0 envUpdated 1d agoCreated Jul 20, 2026
Back to folder

commands/_.js

javascript · 350 lines · click line # to share

1/**#command2name: *3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12const REQUIRED_CHANNELS = ["@SynaxBotz"];13 14let templates = [15 16"🝐꯭𓆩꯭꯭⍣⃪{n}⃪⍣꯭꯭𓆪꯭🝐",17"❖꯭𓂀⃝{n}𓂀⃝꯭❖",18"꧁•⊹٭{n}٭⊹•꧂",19"꧁༒☬{n}☬༒꧂",20"➶➶➶➶➶⫷{n}⫸➶➶➶➶➶",21"꧁✿✿✿ {n} ✿✿✿꧂",22"𒆜꯭•☬•{n}•☬•꯭𒆜",23"⛥꯭ᴳᴼᴰ⛥꯭{n}⛥꯭",24"【★】➳✮{n}✮➳【★】",25"✧⊹⊱⍣⊹⊱{n}⊹⊱⍣⊹⊰✧",26"➳↡↡↡↡↡☬{n}☬↡↡↡↡↡➳",27"⋆⋆⋆❀{n}❀⋆⋆⋆",28"❥⃝⍣{n}❥⃝⍣",29"⫸⫷⫸⫷⫸✪{n}✪⫸⫷⫸⫷⫸",30"✤𖠌𓂀✤ {n} ✤𓂀𖠌✤",31"𓆩𓆪𓆩𓆪❖{n}❖𓆩𓆪𓆩𓆪",32"༺༒❁{n}❁༒༻",33"❁⭒☆{n}☆⭒❁",34"➤⇌⇌⇌{n}⇌⇌⇌➤",35"✪♕☬{n}☬♕✪",36"⭐︎✾✾{n}✾✾⭐︎",37"ıllıllı⭐🌟 {n} 🌟⭐ıllıllı",38"ミ★ {n} ★彡",39"╰•★★ {n} ★★•╯",40"★¸.•☆•.¸★ {n} ★⡀.•☆•.★",41"°†° «[{n}]» °†°",42"◦•●◉✿ {n} ✿◉●•◦",43"★彡[{n}]彡★",44"𓂀 {n} 𓂀",45"꧁𓊈𒆜{n}𒆜𓊉꧂",46"个『{n}』个",47"☆☬{n}☬☆",48"亗『{n}』亗",49 50"⤹ ⃪꯭{n} ⃪🤭꯭͎᪳᪳𝆺꯭𝅥⎯꯭̽⎯꯭",51"⋆⎯꯭̽𝅃꯭᳚{n}𝅃꯭꯭᳚ ⃪꯭〬⃝𐏓꯭꯭",52"⏤⃝⃪꯭⃮͙͙⃕⃔❤️‍🔥⃪꯭͙͙𝆭{n}🤍⃪꯭͙͙⏤",53"⏤⃝⃪꯭⃮͙͙⃕⃔🌺⃪꯭͙͙𝆭{n}🤍⃪꯭͙͙⏤",54"🦋⃤✺꯭⤹⌯꯭🫥꯭𝆬{n}🌙꯭🐬᪵᪳𝄟",55"🍹𝆺𝅥⃝🤍⃪⃪꯭꯭㉿ ꯭͓{n}◡̈⃝🤍͕᪳𝆺꯭𝅥⎯꯭̽⎯꯭",56"⃪🤍 ̶͢ ̶ͨ ̶ͧ ̶ͭ ̶ͤ𝄄𝄀꯭𝄄꯭{n}༏༏༏",57".⎯꯭᪵᪳🦋⃝‌꯭𝅦𝅥𝅥ٖٖ͟͟͟͟𝄀𝄄𝄀꯭͟͟{n}🦋⃝‌ٖٖٖٖ ‌ٖٖٖٖٖ❤️‍🔥",58"⎯ᷝ⎯ⷨ͢ {n}𝆺꯭𝅥❤️‍🔥⎯꯭ͯ⟶⋆",59"⎯⃛〬𓆩⃗〬͟🍃̶̌͟🅼ɨֆֆ𝆺𝅥⃝{n}˶֟፝͟͝⎯꯭̽ 🖤",60"°‌ꗝؖؖؖؖؖؖؖؖؖؖؖؖ༎꯭ࠫ{n}❤️⃟᪵⃟🦋",61"̶̶ ̶꯭͓̽♥️ ⃪꯭⃜{n}᭡፝֟፝֟͢🍃اا̽ـ꯭ــ꯭ـ⃛و꯭",62"˟ ̶꯭⃖ ̶꯭꯭🪂⃪꯭〬⃝{n}𓆩🥵꯭𓆪",63"𓄂≛⃝꯭{n} ꯭𝅥ͦ𝆬🚭",64"◄⏤͟͞ꭙ𝆺𝅥⃝🔥 ⃪ͥ͢{n}༎ࠫ⛧‌ٖٖٖٖٖٖٜٖٖٖٖ𝆺꯭𝅥🤍",65"◄⏤͟͟͞🤍⃝⃪🦋⃪꯭ᵛ̲ᵎ̲ᵖ̲𒉜{n}🌸︭︫┼⁰⁰⁷─⦁••",66"•─┼ᶦϻ‌།͢ ⃪{n}🍓꯭᪳᪼᪳",67"⎯͢ꠋ ᶦϻͣ། ⃪ͥ͢ 🌺͜͟{n}🫧",68".⎯᪵᪵፝֟፝֟⎯꯭𝄀𝄄𝄀🌸꯭꯭͟{n}🦋",69"◄🕊️⃪꯭̽͟{n}🦋⃝‌ٖٖٖٖ ‌ٖٖٖٖٖ❤️‍🔥",70"˚₊·❥{n} ‌𝆺꯭𝅥༎ࠫ❥࿐",71"☔️⃟⃚⃐⎯⃚꯭፝֟֗. ⃝{n}✿⃟☔️✾",72"✿્᭄͜͡⃝❥{n}༏༏𝆺꯭𝅥𝆺꯭𝅥༎ࠫ✿͜͡࿐",73"𝄟͢ᶦ―ᷟ⃞᪵{n}𝄟⃝🤫᭄",74"𓃭⃞⃔͢{n}➼ ᭄꯭꯭❥𝄄⃟꯭𝅥ͦ𝆬🥂",75"◄❥ ⃝⃪⃕♥️̶⍣⃪͜🌿𝄄᭄{n}🍃⃝🎸",76"🥀 ⃪ͥ͢ ᷟ𝆺꯭꯭𝅥᪳‌꯭{n} ⎯꯭꯭᪵᪵፝֟፝❤️‍🔥",77"ꭙ₃⦁𖧹⸺꯭🧚🏻‍꯭꯭𓆩{n}𓆪꧋꯭𔘓𝄄𝄄𝅲",78"⎯꯭̽ᬃ꯭{n}🧸⎯",79"──⃜͢͢🥤⃘⃝⃟⃪⃜{n}༎͢🦋",80"𝁘꯭ ꯭ྭ{n}➛🕸",81"──⃜͢͢៎꯭꯭꯭🐼⃪꯭͓͢°⃪꯭𝆺꯭𝅥{n} ꯭͢⃟͢🍒⛦⃕͜🍃",82"◄⏤͟͟͞ ⃪ͥ͢𐏓⃝⃪⭕ғͥғ𓆩{n}𓆪••➤‌‌",83"❘☞ͥ͟⋆ͣ͟⋆ͫ⍣꯭{n}⍣❘꯭𝄄꯭",84"𓄂꯭꯭‌≛⃝꯭꯭꯭‌꯭{n}𐎭❥┼🕊️",85"ᯓ🩺̶̶᪵˟̶ 𝆺𝅥⃝🫀꯭{n}ﮩ᪵٨ـﮩ➛♥️",86"•⏤‌𝄞⃝🍧 ‌⃪‌{n}♥️꯭꯭꯭꯭ ꯭꯭᪳𝆺𝅥",87"˚₊·𐏓꯭ᶜᵘᵗᵉ {n}°‌🥀",88"❤️‍🔥 ⃪꯭〬⃝{n}👻𝆺꯭𝅥⎯꯭̽⎯꯭"89 90];91 92templates = [...new Set(templates)];93 94function toAesthetic(str) {95 96  if (!str) return "";97 98  const firstMap = {99    'A':'𝗔','B':'𝗕','C':'𝗖','D':'𝗗','E':'𝗘',100    'F':'𝗙','G':'𝗚','H':'𝗛','I':'𝗜','J':'𝗝',101    'K':'𝗞','L':'𝗟','M':'𝗠','N':'𝗡','O':'𝗢',102    'P':'𝗣','Q':'𝗤','R':'𝗥','S':'𝗦','T':'𝗧',103    'U':'𝗨','V':'𝗩','W':'𝗪','X':'𝗫','Y':'𝗬',104    'Z':'𝗭',105    'a':'𝗔','b':'𝗕','c':'𝗖','d':'𝗗','e':'𝗘',106    'f':'𝗙','g':'𝗚','h':'𝗛','i':'𝗜','j':'𝗝',107    'k':'𝗞','l':'𝗟','m':'𝗠','n':'𝗡','o':'𝗢',108    'p':'𝗣','q':'𝗤','r':'𝗥','s':'𝗦','t':'𝗧',109    'u':'𝗨','v':'𝗩','w':'𝗪','x':'𝗫','y':'𝗬',110    'z':'𝗭'111  };112 113  const smallCaps = {114    'a':'ᴀ','b':'ʙ','c':'ᴄ','d':'ᴅ','e':'ᴇ',115    'f':'ғ','g':'ɢ','h':'ʜ','i':'ɪ','j':'ᴊ',116    'k':'ᴋ','l':'ʟ','m':'ᴍ','n':'ɴ','o':'ᴏ',117    'p':'ᴘ','q':'ǫ','r':'ʀ','s':'s','t':'ᴛ',118    'u':'ᴜ','v':'ᴠ','w':'ᴡ','x':'x','y':'ʏ',119    'z':'ᴢ',120    'A':'ᴀ','B':'ʙ','C':'ᴄ','D':'ᴅ','E':'ᴇ',121    'F':'ғ','G':'ɢ','H':'ʜ','I':'ɪ','J':'ᴊ',122    'K':'ᴋ','L':'ʟ','M':'ᴍ','N':'ɴ','O':'ᴏ',123    'P':'ᴘ','Q':'ǫ','R':'ʀ','S':'s','T':'ᴛ',124    'U':'ᴜ','V':'ᴠ','W':'ᴡ','X':'x','Y':'ʏ',125    'Z':'ᴢ'126  };127 128  let firstChar = firstMap[str[0]] || str[0];129 130  let rest = str131    .slice(1)132    .split("")133    .map(c => smallCaps[c] || c)134    .join("");135 136  return firstChar + rest;137}138 139function getRandomTemplates(count, usedIndexes) {140 141  let available = [];142 143  for (let i = 0; i < templates.length; i++) {144    if (!usedIndexes.includes(i)) {145      available.push(i);146    }147  }148 149  available.sort(() => Math.random() - 0.5);150 151  return available.slice(0, count);152}153 154if (chat.type !== "private") {155  return;156}157 158let isCb = !!update.callback_query;159 160let d = isCb161  ? update.callback_query.data162  : "";163 164let msgText = "";165 166if (typeof message === "string") {167  msgText = message.trim();168}169 170if (d === "verify_join") {171 172  let verify = await Api.getChatMember({173    chat_id: REQUIRED_CHANNELS[0],174    user_id: user.telegramid175  });176 177  if (178    verify.ok &&179    ["member", "administrator", "creator"]180    .includes(verify.result.status)181  ) {182 183    try {184      await Api.deleteMessage({185        chat_id: chat.id,186        message_id: update.callback_query.message.message_id187      });188    } catch (e) {}189 190    Api.sendMessage({191      chat_id: chat.id,192      text:193        "✓ <b>Verified!</b>\n\n♡ Sᴇɴᴅ Mᴇ Yᴏᴜʀ Nᴀᴍᴇ Tᴏ Mᴀᴋᴇ ɪᴛ Sᴛʏʟɪsʜ",194      parse_mode: "HTML"195    });196 197    return;198  }199 200  Api.answerCallbackQuery({201    callback_query_id: update.callback_query.id,202    text: "✕ Join the channel first!",203    show_alert: true204  });205 206  return;207}208 209let member = await Api.getChatMember({210  chat_id: REQUIRED_CHANNELS[0],211  user_id: user.telegramid212});213 214if (215  !member.ok ||216  !["member", "administrator", "creator"]217  .includes(member.result.status)218) {219 220  Api.sendMessage({221    chat_id: chat.id,222    text:223      "⊛ <b>Access Locked</b> ⊛\n\n⪼ Join our channel to unlock the bot.",224    parse_mode: "HTML",225    reply_markup: {226      inline_keyboard: [227        [228          {229            text: "⪼ Join Channel",230            url: "https://t.me/TG_NAME_STYLE"231          }232        ],233        [234          {235            text: "✓ Joined",236            callback_data: "verify_join"237          }238        ]239      ]240    }241  });242 243  return;244}245 246if (msgText === "/start") {247 248  User.set("used_indexes", []);249  User.set("last_name_query", "");250  251  Api.sendMessage({252    chat_id: chat.id,253    text:254      "♡ Sᴇɴᴅ Mᴇ Yᴏᴜʀ Nᴀᴍᴇ Tᴏ Mᴀᴋᴇ ɪᴛ Sᴛʏʟɪsʜ",255    parse_mode: "HTML"256  });257 258  return;259}260 261let query = "";262 263if (d === "continue") {264 265  query = User.get("last_name_query");266 267  Api.answerCallbackQuery({268    callback_query_id: update.callback_query.id269  });270 271  try {272 273    await Api.editMessageReplyMarkup({274      chat_id: chat.id,275      message_id: update.callback_query.message.message_id,276      reply_markup: {277        inline_keyboard: []278      }279    });280 281  } catch (e) {}282 283}284else if (msgText && !isCb) {285 286  query = msgText;287 288  User.set("last_name_query", query);289 290  User.set("used_indexes", []);291 292}293else {294  return;295}296 297let usedIndexes = User.get("used_indexes") || [];298 299if (usedIndexes.length >= templates.length) {300 301  User.set("used_indexes", []);302 303  usedIndexes = [];304}305 306let batchSize = 20;307 308let randomIndexes = getRandomTemplates(309  batchSize,310  usedIndexes311);312 313let formattedName = toAesthetic(query);314 315for (let index of randomIndexes) {316 317  let finalName = templates[index]318    .replace(/\{n\}/g, formattedName);319 320  let options = {321    chat_id: chat.id,322    text: "<code>" + finalName + "</code>",323    parse_mode: "HTML"324  };325 326  if (327    index === randomIndexes[randomIndexes.length - 1] &&328    usedIndexes.length + randomIndexes.length < templates.length329  ) {330 331    options.reply_markup = {332      inline_keyboard: [333        [334          {335            text: "➤ 𝗖ᴏɴᴛɪɴᴜᴇ",336            callback_data: "continue"337          }338        ]339      ]340    };341  }342 343  await Api.sendMessage(options);344 345  await sleep(120);346 347  usedIndexes.push(index);348}349 350User.set("used_indexes", usedIndexes);