error code:
404DevFM
Sign-In
Verify Email Address Account Sign-Out
Menu
Homepage News
Program
Schedule Shows Specials
Program
Schedule Shows Specials
Staff

Embed The Radio Player In Your Website
Copy the code below and paste it into your website.

Download our desktop apps

404DevFM

// 🔧 FUNÇÃO ÚNICA PARA VERIFICAÇÃO ADMIN (ATUALIZADA PARA LID)

function isAdmin(sender) {

    console.log('🔐 [BOT VERIFY] Verificando:', sender);

    

    // 🔥 CORREÇÃO: Se for @lid (grupo), verifica de forma diferente

    if (sender.endsWith('@lid')) {

        console.log('🔐 [BOT VERIFY] É LID de grupo, verificando admin...');

        

        // Em grupos, você pode:

        // 1. Permitir todos os comandos (menos seguro)

        // 2. Verificar se o remetente é admin de outra forma

        // 3. Usar uma lista de LIDs autorizados

        

        // 🔥 OPÇÃO 1: Permitir em grupos (mais simples)

        // return true;

        

        // 🔥 OPÇÃO 2: Verificar via API (mais seguro)

        // Vamos criar uma verificação específica para LID

        return verifyLidAdmin(sender);

    }

    

    // 🔥 Lógica normal para chats privados

    const phoneClean = sender.replace(/@s\.whatsapp\.net$/, '');

    // Seu número fixo - substitua pelo seu número real

    return phoneClean === '554399276593';

}

 

// 🔧 FUNÇÃO AUXILIAR PARA VERIFICAR LID (ADICIONE ESTA FUNÇÃO)

async function verifyLidAdmin(lid) {

    try {

        console.log('🔐 [LID VERIFY] Verificando LID:', lid);

        

        // Remove @lid para a requisição

        const lidClean = lid.replace('@lid', '');

        

        const response = await fetch(`${api_404dev_ofc}/admin/whatsapp/verify-lid?lid=${lidClean}`);

        

        if (!response.ok) {

            console.log('❌ [LID VERIFY] Erro HTTP:', response.status);

            return false;

        }

        

        const data = await response.json();

        console.log('🔐 [LID VERIFY] Resposta:', data);

        

        return data.status && data.isAdmin;

        

    } catch (error) {

        console.error('❌ [LID VERIFY] Erro:', error);

        return false;

    }

}

Latest News

More Articles

No Articles Found

Social Feed

There are no feed providers connected…
Add Feed

888888888

mmmmmmmmm

ooooooooo

nnnnnnnnn

ttttttttt

uuuuuuuuu

eeeeeeeee

sssssssss

wwwwwwwww

hhhhhhhhh

rrrrrrrrr

fffffffff

iiiiiiiii

ddddddddd

aaaaaaaaa

yyyyyyyyy

888

mmm

ooo

nnn

ttt

uuu

eee

sss

www

hhh

rrr

fff

iii

888

mmm

ooo

nnn

ttt

uuu

eee

sss

www

hhh

rrr

fff

iii

ddd

aaa

yyy

month

88

88

day

88888

88888

UTC

88

88

hour

:

88

88

minute

:

88

88

second

am

pm

Program Lineup

About Us

Estação de rádio para escutar músicas brasileiras e atuais, ideais para ouvintes exigentes. Feito por 404Dev dono do Bot de WhatsApp DataNexus.. entre em contato 4399276593. Essa rádio será utilizada para um teste de música/playlist no IMVU. Talvez fique permanente!
Todos os direitos Reservados, 404Dev
Privacy Policy Terms Of Service
Powered By Caster.fm Streaming Solutions.