# oliveiratiagoo/automacao-discord architecture

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

- Interactive diagram: https://gitdiagram.com/oliveiratiagoo/automacao-discord
- Repository: https://github.com/oliveiratiagoo/automacao-discord

## Overview

This is a small Python-to-Discord message sender. A user enters text in a Streamlit interface and clicks Send; the callback loads the webhook URL, validates the message, and posts valid content to Discord, then reports success or failure in the interface. The README describes terminal input, but the sampled source implements Streamlit instead. The single source file supports the shown runtime links; no separate configuration file is present in the tree.

Main entry points: [`enviar_discord.py`](https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.py) (Send callback)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_streamlit["Streamlit interface<br/>[enviar_discord.py]"]
end

subgraph group_runtime["Message handling"]
  node_handler["Send callback<br/>[enviar_discord.py]"]
  node_config["Webhook configuration<br/>[enviar_discord.py]"]
end

subgraph group_integration["Discord integration"]
  node_discord["Discord webhook"]
end

node_user(("User"))

node_user -->|"enters message"| node_streamlit
node_streamlit -->|"dispatches callback"| node_handler
node_handler -->|"loads URL"| node_config
node_handler -->|"posts message"| node_discord
node_handler -->|"shows result"| node_streamlit

click node_streamlit "https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.py"
click node_handler "https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.py"
click node_config "https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.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_streamlit,node_user toneBlue
class node_handler,node_config toneAmber
class node_discord toneMint
```

## Components

### User interface

- [Streamlit interface](https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.py): `enviar_discord.py`

### Message handling

- [Send callback](https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.py): `enviar_discord.py`
- [Webhook configuration](https://github.com/oliveiratiagoo/automacao-discord/blob/main/enviar_discord.py): `enviar_discord.py`

### Discord integration

- **Discord webhook**

### Other components

- **User**

## Connections

- User → Streamlit interface: enters message (evidence: `enviar_discord.py`)
- Streamlit interface → Send callback: dispatches callback (evidence: `enviar_discord.py`)
- Send callback → Webhook configuration: loads URL (evidence: `enviar_discord.py`)
- Send callback → Discord webhook: posts message (evidence: `enviar_discord.py`)
- Send callback → Streamlit interface: shows result (evidence: `enviar_discord.py`)
