ashoksarande3/ASHOK_HACK_STORE_BOTPublic · Bot Template

AIThis bot operates as a commercial storefront for selling Free Fire game hacks and cheats via UPI QR code payments. It features a dynamic pricing system with separate normal and reseller prices, product plans with flexible durations (days, hours, minutes), and a reseller program requiring a one-time upgrade fee. The bot handles payment verification through QR code generation and expiry tracking, user verification via Telegram contact sharing, and admin tools for stock management, plan creation, and ownership transfer. It includes a balance system, maintenance mode, and Telegram Stars payment fallback. The codebase uses TeleBotHost's TBL JavaScript APIs (Bot, Api, HTTP, db properties, Libs) for all logic.

Commercefreefiregame-hacksupi-paymentsqr-codesreseller-systemdynamic-pricing
ProfileTelegram
102 commands0 envUpdated 16d agoCreated Aug 22, 2026
Back to folder

commands/_normalprice.js

javascript · 52 lines

Raw
1/**#command2name: /normalprice3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12try {13  var adminId = "8660373585";14  if (String(chat.chatid) !== adminId) return;15 16  // Expected Format: pubg_mobile | 1_Day | 12017  if (!params) {18    Bot.sendMessage("❌ <b>Usage:</b>\n<code>/normalprice product_name | days | price</code>\n\n<i>Example: pubg_mobile | 1_Day | 120</i>", { parse_mode: "HTML" });19    return;20  }21 22  // Pipe '|' symbol ke hisab se text ko split karna23  var args = params.split("|");24 25  if (args.length < 3) {26    Bot.sendMessage("❌ <b>Incorrect Format!</b> Use Pipe symbol:\n<code>/setnormalprice product_name | days | price</code>", { parse_mode: "HTML" });27    return;28  }29 30  // Spaces remove karna trim() use karke31  var prodName = args[0].trim();32  var planName = args[1].trim();33  var price = args[2].trim();34 35  if (!prodName || !planName || !price || isNaN(price)) {36    Bot.sendMessage("❌ Invalid price number or structure. Double check inputs!", { parse_mode: "HTML" });37    return;38  }39 40  // Database standard configurations me save karna41  Bot.setProperty("price_normal_" + prodName + "_" + planName, Number(price), "float");42 43  var successText = "<blockquote><b><tg-emoji emoji-id='6064514463564831610'>💟</tg-emoji> NORMAL PRICE UPDATED</b>\n\n" +44                    "• <b>Product:</b> <code>" + prodName + "</code>\n" +45                    "• <b>Validity/Days:</b> <code>" + planName + "</code>\n" +46                    "• <b>New Price:</b> <code>₹" + Number(price).toFixed(2) + "</code></blockquote>";47 48  Bot.sendMessage(successText, { parse_mode: "HTML" });49 50} catch (err) { 51  Bot.sendMessage("Error: " + err.message); 52}