vaibhav12222vk/taskXmoneybotPublic ยท Bot Template

ProfileTelegram

AI๐Ÿ’Žโšก ๐™ˆ๐™ค๐™ฃ๐™š๐™ฎ๐™๐™–๐™จ๐™  โšก๐Ÿ’Ž appears to be a Telegram automation bot. Commands include /start, /admin, /adminback, /profile, /helpandsupport, /broadcast, /finduser, /contactuser. Observed in code: messaging, storage, keyboards, web.

Utilityutility
51 commands0 envUpdated 6d agoCreated Sep 16, 2026
Back to folder

commands/_profile.js

javascript ยท 145 lines

Raw
1/**#command2name: /profile3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12// ===============================13// ๐Ÿ‘ค MY PROFILE14// ===============================15 16let userId = Number(user.id);17 18// Balance19let balance = Number(20  await db.user.get("balance", 0)21) || 0;22 23// Tasks Completed24let completed = Number(25  await db.user.get(26    "tasks_completed",27    0,28    { user_id: userId }29  )30) || 0;31 32// ===============================33// ๐Ÿ“ค GMAIL SUBMISSIONS34// ===============================35 36let submissions = await db.bot.get("submissions", []);37 38if (!Array.isArray(submissions)) {39  submissions = [];40}41 42// Pending Gmail submissions43let pendingTasks = submissions.filter(function(s) {44  return Number(s.user_id) === userId &&45         s.status === "pending";46}).length;47 48// Rejected Gmail submissions49let rejectedTasks = submissions.filter(function(s) {50  return Number(s.user_id) === userId &&51         s.status === "rejected";52}).length;53 54// ===============================55// ๐Ÿ’ธ WITHDRAWALS56// ===============================57 58let withdrawals = await db.bot.get(59  "withdrawal_requests",60  []61);62 63if (!Array.isArray(withdrawals)) {64  withdrawals = [];65}66 67// Pending withdrawal amount68let pendingWithdrawals = 0;69 70for (let w of withdrawals) {71  if (72    Number(w.user_id) === userId &&73    w.status === "pending"74  ) {75    pendingWithdrawals += Number(w.amount) || 0;76  }77}78 79// Total approved withdrawals80let totalWithdrawn = 0;81 82for (let w of withdrawals) {83  if (84    Number(w.user_id) === userId &&85    w.status === "approved"86  ) {87    totalWithdrawn += Number(w.amount) || 0;88  }89}90 91// ===============================92// ๐Ÿ‘ค USERNAME93// ===============================94 95let username = user.username96  ? "@" + user.username97  : "Not Set";98 99// ===============================100// ๐Ÿ“… JOINED DATE101// ===============================102 103let joinedDate = await db.user.get(104  "joined_date",105  ""106);107 108let joinedText = "Not Available";109 110if (joinedDate) {111  let d = new Date(joinedDate);112 113  joinedText =114    d.getDate() + " " +115    d.toLocaleString("en-US", {116      month: "short"117    }) + " " +118    d.getFullYear();119}120 121// ===============================122// ๐Ÿ“‹ PROFILE123// ===============================124 125Bot.sendMessage(126  "๐Ÿ‘ค ๐™ˆ๐™” ๐™‹๐™๐™Š๐™๐™„๐™‡๐™€\n\n" +127 128  "๐Ÿ†” User ID: " + userId +129  "\n๐Ÿ‘ค Username: " + username +130 131  "\n\n๐Ÿ’ฐ ๐™๐™Š๐™๐˜ผ๐™‡ ๐™ˆ๐™Š๐™‰๐™€๐™”: โ‚น" +132  balance.toFixed(2) +133 134  "\n\n๐ŸŽฏ Tasks Completed: " + completed +135  "\nโณ Tasks Pending: " + pendingTasks +136  "\nโŒ Tasks Rejected: " + rejectedTasks +137 138  "\n\n๐Ÿ’ธ Pending Withdrawals: โ‚น" +139  pendingWithdrawals.toFixed(2) +140 141  "\nโœ… Total Withdrawn: โ‚น" +142  totalWithdrawn.toFixed(2) +143 144  "\n\n๐Ÿ“… Joined: " + joinedText145);