NEP DEVS
Ir al canal en Telegram
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
Mostrar másSin datos
Suscriptores
-3724 horas
-1357 días
-23530 días
Archivo de publicaciones
🔁COMMAND - /fetchDetails
🌎BJ's -
HTTP.get({
url: "http://cricklive.apinepdev.workers.dev/api/live/",
success: "/succ"
})
🔁COMMAND - /succ
🌎BJ's -
var data = JSON.parse(content)
function kyt(obj, indent = 0) {
let result = '';
for (let key in obj) {
if (typeof obj[key] === 'object' && obj[key] !== null) {
result += `${' '.repeat(indent)}${key}: \n${displayObject(obj[key], indent + 4)}`;
} else {
result += `${' '.repeat(indent)}${key}: ${obj[key]}\n`;
}
}
return result;
}
Bot.sendMessage(kyt(data,4))BJS:
Command /fetchMatch
BJs -
HTTP.get({ url: "http://cricklive.apinepdev.workers.dev/api/live/", success: "/@suc" })Cmd - /@suc BJs -
function displayObject(obj, indent = 0) { let result = ''; for (let key in obj) { if (typeof obj[key] === 'object' && obj[key] !== null) { result +=
${' '.repeat(indent)}${key}: \n${displayObject(obj[key], indent + 4)};
} else {
result += ${' '.repeat(indent)}${key}: ${obj[key]}\n;
}
}
return result;
}
Bot.sendMessage(displayObject(JSON.parse(content),4))