# not-incogn170/iuno-rework architecture

> Architecture diagram of the GitHub repository not-incogn170/iuno-rework, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/not-incogn170/iuno-rework
- Repository: https://github.com/not-incogn170/iuno-rework

## Overview

Iuno Reworked is a WhatsApp bot: it receives messages, dispatches commands, and replies in chat. The main capabilities shown are sticker creation, social-media link lookup, menu and owner commands, and small conversational replies. Sticker processing downloads message media, converts it with ffmpeg, then sends the result; downloader results are returned as text. Source excerpts show the bot orchestration and these two modules, but not the downloader provider internals. The README also mentions “Whenyah”; its command is handled in the bot entry point.

Main entry points: [`index.js`](https://github.com/not-incogn170/iuno-rework/blob/main/index.js) (Bot runtime), [`lib/sticker.js`](https://github.com/not-incogn170/iuno-rework/blob/main/lib/sticker.js) (Sticker conversion), [`lib/down.js`](https://github.com/not-incogn170/iuno-rework/blob/main/lib/down.js) (Media lookup), [`src/INFO.txt`](https://github.com/not-incogn170/iuno-rework/blob/main/src/INFO.txt) (Menu content)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bot["WhatsApp bot"]
  node_runtime["Bot runtime<br/>[index.js]"]
  node_baileys{{"Baileys service"}}
end

subgraph group_media["Media features"]
  node_sticker["Sticker conversion<br/>[sticker.js]"]
  node_downloader["Media lookup<br/>[down.js]"]
  node_ffmpeg{{"FFmpeg"}}
  node_downloader_service{{"Downloader provider"}}
end

subgraph group_commands["Chat commands"]
  node_menu["Menu reply<br/>[index.js]"]
  node_social["Social replies<br/>[index.js]"]
  node_owner["Owner commands<br/>[index.js]"]
  node_info["Menu content<br/>[INFO.txt]"]
end

node_user(("WhatsApp user"))
node_whatsapp{{"WhatsApp network"}}

node_user -->|"sends messages"| node_whatsapp
node_whatsapp -->|"delivers events"| node_runtime
node_runtime -->|"creates socket"| node_baileys
node_runtime -->|"dispatches media"| node_sticker
node_runtime -->|"requests lookup"| node_downloader
node_runtime -->|"routes commands"| node_menu
node_runtime -->|"routes commands"| node_social
node_runtime -->|"routes commands"| node_owner
node_runtime -->|"reads menu"| node_info
node_sticker -->|"converts media"| node_ffmpeg
node_downloader -->|"queries provider"| node_downloader_service
node_runtime -->|"sends replies"| node_whatsapp
node_sticker -->|"sends stickers"| node_whatsapp

click node_runtime "https://github.com/not-incogn170/iuno-rework/blob/main/index.js"
click node_sticker "https://github.com/not-incogn170/iuno-rework/blob/main/lib/sticker.js"
click node_downloader "https://github.com/not-incogn170/iuno-rework/blob/main/lib/down.js"
click node_menu "https://github.com/not-incogn170/iuno-rework/blob/main/index.js"
click node_social "https://github.com/not-incogn170/iuno-rework/blob/main/index.js"
click node_owner "https://github.com/not-incogn170/iuno-rework/blob/main/index.js"
click node_info "https://github.com/not-incogn170/iuno-rework/blob/main/src/INFO.txt"

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_runtime,node_baileys,node_user toneBlue
class node_sticker,node_downloader,node_ffmpeg,node_downloader_service toneAmber
class node_menu,node_social,node_owner,node_info toneMint
class node_whatsapp toneIndigo
```

## Components

### WhatsApp bot

- [Bot runtime](https://github.com/not-incogn170/iuno-rework/blob/main/index.js): `index.js`
- **Baileys service**

### Media features

- [Sticker conversion](https://github.com/not-incogn170/iuno-rework/blob/main/lib/sticker.js): `lib/sticker.js`
- [Media lookup](https://github.com/not-incogn170/iuno-rework/blob/main/lib/down.js): `lib/down.js`
- **FFmpeg**
- **Downloader provider**

### Chat commands

- [Menu reply](https://github.com/not-incogn170/iuno-rework/blob/main/index.js): `index.js`
- [Social replies](https://github.com/not-incogn170/iuno-rework/blob/main/index.js): `index.js`
- [Owner commands](https://github.com/not-incogn170/iuno-rework/blob/main/index.js): `index.js`
- [Menu content](https://github.com/not-incogn170/iuno-rework/blob/main/src/INFO.txt): `src/INFO.txt`

### Other components

- **WhatsApp user**
- **WhatsApp network**

## Connections

- WhatsApp user → WhatsApp network: sends messages (evidence: `README.md`)
- WhatsApp network → Bot runtime: delivers events (evidence: `index.js`)
- Bot runtime → Baileys service: creates socket (evidence: `index.js`)
- Bot runtime → Sticker conversion: dispatches media (evidence: `index.js`)
- Bot runtime → Media lookup: requests lookup (evidence: `index.js`)
- Bot runtime → Menu reply: routes commands (evidence: `index.js`)
- Bot runtime → Social replies: routes commands (evidence: `index.js`)
- Bot runtime → Owner commands: routes commands (evidence: `index.js`)
- Bot runtime → Menu content: reads menu (evidence: `index.js`)
- Sticker conversion → FFmpeg: converts media (evidence: `lib/sticker.js`)
- Media lookup → Downloader provider: queries provider (evidence: `lib/down.js`)
- Bot runtime → WhatsApp network: sends replies (evidence: `index.js`)
- Sticker conversion → WhatsApp network: sends stickers (evidence: `lib/sticker.js`)
