Created
June 1, 2025 15:46
-
-
Save tahirbhatti78/e83bac7f5bc4ae68963be003d1765880 to your computer and use it in GitHub Desktop.
Get any Pakistani sim database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { bot } = require("../lib/"); | |
| const axios = require("axios"); | |
| bot( | |
| { | |
| pattern: "simdb", | |
| desc: "Get Details of any pak sim, including sim, cnic, address and owner details", | |
| type: "search", | |
| }, | |
| async (message, match) => { | |
| try { | |
| if (!match) return message.send("Please provide a 10/11-digit SIM or 13-digit CNIC number."); | |
| const number = match.trim().replace(/[^\d]/g, ""); | |
| if (![10, 11, 13].includes(number.length)) { | |
| return message.send("Please provide a valid 10/11-digit SIM or 13-digit CNIC number."); | |
| } | |
| const response = await axios.get(`https://anoncyberwarrior.com/acwtools.php?num=${number}`); | |
| const data = response.data; | |
| if (data.data && data.data[0] && data.data[0].Name === "β Data Not Found") { | |
| return message.send("No SIM or CNIC data found."); | |
| } | |
| if (data.status === "success" && data.data && data.data.length > 0) { | |
| let result = "π± *SIM Database Results* π±\n\n"; | |
| data.data.forEach((item, index) => { | |
| result += `*Result ${index + 1}:*\n`; | |
| result += `π€ *Name:* ${item.Name || "N/A"}\n`; | |
| result += `π *Number:* ${item.Mobile || "N/A"}\n`; | |
| result += `π *CNIC:* ${item.CNIC || "N/A"}\n`; | |
| result += `π’ *Operator:* ${item.Operator || "N/A"}\n`; | |
| result += `π *Address:* ${item.Address || "N/A"}\n\n`; | |
| }); | |
| return message.send(result); | |
| } else { | |
| return message.send("No SIM or CNIC data found."); | |
| } | |
| } catch (error) { | |
| console.error("SIM Database Error:", error); | |
| await message.send("β Failed to fetch SIM/CNIC data. Please try again later."); | |
| } | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment