manafzz147/Shenskyx_botPublic · Bot Template

ProfileTelegram

AIshen appears to be a Telegram automation bot. Commands include /start, /menu_edit_basic, /buyvps, /vps, /admin, /order_basic, /kirim_pair, /order_pro. Observed in code: messaging, keyboards.

Utilityutility
16 commands0 envUpdated 1mo agoCreated Sep 4, 2026
Back to folder

commands/_status_vps.js

javascript · 75 lines

Raw
1/**#command2name: /status_vps3answer: 4keyboard: 5parse_mode: markdown6aliases: 7allow_only_group: false8need_reply: false9is_web: 010#command**/11 12if (request && request.id) {13  Api.answerCallbackQuery({ callback_query_id: request.id });14}15 16function fixHtml(text) {17  if (!text) return "";18  return String(text)19    .replace(/&/g, "&amp;")20    .replace(/</g, "&lt;")21    .replace(/>/g, "&gt;");22}23 24// Ambil data VPS user dari User Property25let vpsData = User.getProperty("has_vps");26let u = typeof user !== 'undefined' && user ? user : {};27 28let teksStatus = "";29 30if (vpsData) {31  let plan = fixHtml(vpsData.plan || "VPS Server");32  let ip = fixHtml(vpsData.ip || "Belum diset");33  let password = fixHtml(vpsData.password || "******");34 35  teksStatus = "🖥️ <b>STATUS VPS SAYA</b>\n" +36               "═══════════════════════\n\n" +37               "🟢 <b>Layanan Aktif</b>\n\n" +38               "• Paket: <b>" + plan + "</b>\n" +39               "• IP Address: <code>" + ip + "</code>\n" +40               "• Password: <code>" + password + "</code>\n\n" +41               "<i>Simpan baik-baik data kredensial ini. Jangan berikan password kepada siapapun.</i>";42} else {43  // Format teks saat user belum memiliki VPS44  teksStatus = "🖥️ <b>STATUS VPS SAYA</b>\n" +45               "═══════════════════════\n\n" +46               "❌ Anda belum memiliki VPS aktif.\n\n" +47               "Silakan sewa atau beli layanan VPS kami terlebih dahulu melalui menu katalog untuk mulai menggunakan layanan.";48}49 50let keyboard = {51  inline_keyboard: [52    [53      { text: "📦 Beli lagi", callback_data: "/buyvps" }54    ],55    [56      { text: "⬅️ Kembali", callback_data: "/vps" },57      { text: "🏠 Menu Utama", callback_data: "/start" }58    ]59  ]60};61 62if (request && request.message) {63  Api.editMessageText({64    message_id: request.message.message_id,65    text: teksStatus,66    parse_mode: 'HTML',67    reply_markup: keyboard68  });69} else {70  Api.sendMessage({71    text: teksStatus,72    parse_mode: 'HTML',73    reply_markup: keyboard74  });75}