marriedtermiteblyi commited on
Commit
ba1268a
·
verified ·
1 Parent(s): e3162a1

put notes/10f42762-d0ee-4c46-8e78-c360035a8187.json

Browse files
notes/10f42762-d0ee-4c46-8e78-c360035a8187.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "10f42762-d0ee-4c46-8e78-c360035a8187",
3
+ "title": "acclq.js",
4
+ "content": "const axios = require('axios');\n\nmodule.exports.config = {\n name: \"acclq\",\n version: \"1.0.0\",\n hasPermission: 0, // Đã sửa 'hasPermssion' thành 'hasPermission'\n credits: \"nvh\",\n description: \"acc cộng đồng \",\n commandCategory: \"Tiện ích\",\n usages: \"[số lượng]\",\n cooldowns: 5\n};\n\nmodule.exports.run = async ({ api, event, args }) => {\n const count = parseInt(args[0]) || 10;\n const url = `https://keyherlyswar.x10.mx/Apidocs/reglq.php?count=${count}`;\n\n try {\n const res = await axios.get(url);\n const data = res.data;\n\n if (!data.status || !Array.isArray(data.result)) {\n return api.sendMessage(\"Không lấy được danh sách tài khoản!\", event.threadID, event.messageID);\n }\n\n let msg = `🎮 𝗗𝗔𝗡𝗛 𝗦Á𝗖𝗛 𝗔𝗖𝗖 𝗟𝗜Ê𝗡 𝗤𝗨Â𝗡\\n━━━━━━━━━━━━━━\\n`;\n data.result.forEach((acc, index) => {\n msg += `🔹 𝗔𝗰𝗰 ${index + 1}:\\n👤 Tài khoản: ${acc.account}\\n🔑 Mật khẩu: ${acc.password}\\n━━━━━━━━━━━━━━\\n`;\n });\n msg += `📦 Tổng: ${data.result.length} tài khoản\\n👤 Nguồn cung cấp: @NgVanHung 🐧`;\n\n api.sendMessage(msg, event.threadID, event.messageID);\n } catch (err) {\n console.error(err);\n api.sendMessage(\"Có lỗi xảy ra khi lấy dữ liệu.\", event.threadID, event.messageID); // Sửa lại thông báo để rõ nghĩa hơn\n }\n};",
5
+ "language": "javascript",
6
+ "createdAt": 1755598076825,
7
+ "updatedAt": 1755598076825
8
+ }