feat: whatsapp collector#1
Open
Clintonrocha98 wants to merge 13 commits into
Open
Conversation
danielhe4rt
requested changes
May 22, 2026
Contributor
danielhe4rt
left a comment
There was a problem hiding this comment.
O bot em si não deveria parsear nenhum tipo de mensagem. Apenas enviar o conteúdo pra próxima endpoint e o back-end em PHP/Laravel vai tratar e entender o quê fazer com o dado bruto.
| # Apaga logs/<evento>/<dia>.json além de N dias. 0 = mantém tudo (comportamento antigo). | ||
| LOG_RETENTION_DAYS=14 | ||
|
|
||
| # Poda logs/message-store/ (1 arquivo/mensagem) além de N dias. 0 = mantém tudo. |
Comment on lines
+18
to
+23
| # ── Opcionais ── | ||
| # Override da URL do WebSocket do WhatsApp. Vazio = padrão do Baileys. | ||
| SOCKET_URL= | ||
|
|
||
| # Chave secreta avançada de credenciais (advSecretKey). Vazio se não usar. | ||
| ADV_SECRET_KEY= |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 O que é isso?
Este PR adiciona um bot que fica conectado ao WhatsApp e acompanha o que acontece nos grupos da comunidade — mensagens, reações, pessoas entrando e saindo, informações do grupo — e envia tudo para a plataforma (o sistema em Laravel), que decide o que guardar e como usar (relatórios, estatísticas, etc.).
Pense nele como um observador: ele não responde nem interage, só escuta e repassa o que acontece nos grupos.
🔁 Como funciona, em poucas palavras
🧭 Princípios que guiaram as decisões
📦 O que este PR entrega
⚙️ Como rodar
.env.examplepara.enve preencha o endereço da plataforma e o segredo compartilhado.pnpm installepnpm dev.