# amitdas4321/ngl-spammer architecture

> Architecture diagram of the GitHub repository amitdas4321/ngl-spammer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/amitdas4321/ngl-spammer
- Repository: https://github.com/amitdas4321/ngl-spammer

## Overview

NGL-Spammer is a small interactive Python script that submits a chosen message to NGL. The user supplies a username, message, count, delay, and proxy choice; the script builds each request, submits it, reports the result, and continues until the requested number succeeds. It also selects user agents and can switch proxies after repeated failures. The recovery calls for a new device ID and user agent discard their return values; fresh values are generated on the next request. Relationships are based on the main-script excerpt and README.

Main entry points: [`NGLSpamer.py`](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py) (Submission loop), [`user-agents.txt`](https://github.com/amitdas4321/ngl-spammer/blob/main/user-agents.txt) (User-agent list), [`proxies.txt`](https://github.com/amitdas4321/ngl-spammer/blob/main/proxies.txt) (Proxy list)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_cli["Interactive prompts<br/>[NGLSpamer.py]"]
node_loop["Submission loop<br/>[NGLSpamer.py]"]
node_request["Request data<br/>[NGLSpamer.py]"]
node_device["Device ID generator<br/>[NGLSpamer.py]"]
node_agent["User-agent selector<br/>[NGLSpamer.py]"]
node_agents["User-agent list<br/>[user-agents.txt]"]
node_proxy["Proxy selector<br/>[NGLSpamer.py]"]
node_proxies["Proxy list<br/>[proxies.txt]"]
node_ngl{{"NGL service"}}
node_output["Terminal results<br/>[NGLSpamer.py]"]

node_user -->|"enters settings"| node_cli
node_cli -->|"starts sending"| node_loop
node_loop -->|"builds request"| node_request
node_request -->|"generates ID"| node_device
node_request -->|"selects agent"| node_agent
node_agent -->|"reads list"| node_agents
node_cli -->|"selects if enabled"| node_proxy
node_loop -->|"switches after failures"| node_proxy
node_proxy -->|"reads list"| node_proxies
node_loop -->|"posts message"| node_ngl
node_ngl -->|"returns response"| node_loop
node_loop -->|"prints status"| node_output

click node_cli "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"
click node_loop "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"
click node_request "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"
click node_device "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"
click node_agent "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"
click node_agents "https://github.com/amitdas4321/ngl-spammer/blob/main/user-agents.txt"
click node_proxy "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"
click node_proxies "https://github.com/amitdas4321/ngl-spammer/blob/main/proxies.txt"
click node_output "https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user,node_agent,node_agents toneBlue
class node_cli,node_loop,node_device,node_proxy,node_proxies,node_output toneTeal
class node_request toneMint
class node_ngl toneIndigo
```

## Components

### Other components

- **User**
- [Interactive prompts](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`
- [Submission loop](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`
- [Request data](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`
- [Device ID generator](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`
- [User-agent selector](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`
- [User-agent list](https://github.com/amitdas4321/ngl-spammer/blob/main/user-agents.txt): `user-agents.txt`
- [Proxy selector](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`
- [Proxy list](https://github.com/amitdas4321/ngl-spammer/blob/main/proxies.txt): `proxies.txt`
- **NGL service**
- [Terminal results](https://github.com/amitdas4321/ngl-spammer/blob/main/NGLSpamer.py): `NGLSpamer.py`

## Connections

- User → Interactive prompts: enters settings (evidence: `README.md`)
- Interactive prompts → Submission loop: starts sending (evidence: `NGLSpamer.py`)
- Submission loop → Request data: builds request (evidence: `NGLSpamer.py`)
- Request data → Device ID generator: generates ID (evidence: `NGLSpamer.py`)
- Request data → User-agent selector: selects agent (evidence: `NGLSpamer.py`)
- User-agent selector → User-agent list: reads list (evidence: `NGLSpamer.py`)
- Interactive prompts → Proxy selector: selects if enabled (evidence: `NGLSpamer.py`)
- Submission loop → Proxy selector: switches after failures (evidence: `NGLSpamer.py`)
- Proxy selector → Proxy list: reads list (evidence: `NGLSpamer.py`)
- Submission loop → NGL service: posts message (evidence: `NGLSpamer.py`)
- NGL service → Submission loop: returns response (evidence: `NGLSpamer.py`)
- Submission loop → Terminal results: prints status (evidence: `NGLSpamer.py`)
