# appu1232/discord-selfbot architecture

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

- Interactive diagram: https://gitdiagram.com/appu1232/discord-selfbot
- Repository: https://github.com/appu1232/discord-selfbot

## Overview

Discord Selfbot is a command-driven Discord client with tracking, customization, moderation, search, and utility features. The principal workflow is a user issuing a command or sending a message, the bot handling it through its runtime and feature cogs, then replying or performing an action in Discord. README-documented capabilities are represented even where their implementation was not sampled. Edges are limited to documented behavior and source-index references; dashed links mark runtime dispatch not verified in the excerpts.

Main entry points: [`appuselfbot.py`](https://github.com/appu1232/discord-selfbot/blob/master/appuselfbot.py) (Bot runtime), [`cogs/utility.py`](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utility.py) (Utility commands), [`cogs/utils/checks.py`](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/checks.py) (Checks and helpers), [`cogs/utils/dataIO.py`](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/dataIO.py) (JSON persistence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Bot runtime"]
  node_bot["Bot runtime<br/>[appuselfbot.py]"]
end

subgraph group_personalize["Commands and customization"]
  node_custom["Custom commands<br/>[customcmds.py]"]
  node_quick["Quick commands<br/>[allmsgs.py]"]
  node_fun["Meme commands<br/>[fun.py]"]
  node_misc["Status and embeds<br/>[misc.py]"]
end

subgraph group_tracking["Tracking and records"]
  node_keyword["Keyword logger<br/>[keywordlog.py]"]
  node_todo["Todo and timers<br/>[todo.py]"]
  node_imagedump["Image dumps<br/>[imagedump.py]"]
end

subgraph group_discord_tools["Discord tools"]
  node_serverinfo["Server information<br/>[serverinfo.py]"]
  node_moderation["Moderation<br/>[mod.py]"]
  node_utility["Utility commands<br/>[utility.py]"]
  node_search["Search and translation<br/>[google.py]"]
  node_debugger["Python interpreter<br/>[debugger.py]"]
end

subgraph group_shared["Shared services"]
  node_checks["Checks and helpers<br/>[checks.py]"]
  node_config["Configuration access<br/>[config.py]"]
  node_dataio[("JSON persistence<br/>[dataIO.py]")]
  node_menu["Interactive menus<br/>[menu.py]"]
  node_webhooks["Webhook client<br/>[webhooks.py]"]
end

node_user(("Selfbot user"))
node_discord{{"Discord"}}
node_google{{"Google Search"}}
node_sauce{{"SauceNAO"}}

node_user -->|"issues commands"| node_bot
node_bot -->|"sends actions"| node_discord
node_bot -.->|"dispatches commands"| node_custom
node_bot -.->|"handles messages"| node_keyword
node_bot -.->|"dispatches commands"| node_todo
node_bot -.->|"dispatches commands"| node_imagedump
node_bot -.->|"dispatches commands"| node_fun
node_bot -.->|"dispatches commands"| node_misc
node_bot -.->|"dispatches commands"| node_serverinfo
node_bot -.->|"dispatches commands"| node_moderation
node_bot -.->|"dispatches commands"| node_utility
node_bot -.->|"dispatches commands"| node_search
node_bot -.->|"dispatches commands"| node_debugger
node_bot -->|"imports"| node_quick
node_bot -->|"imports"| node_dataio
node_bot -->|"imports"| node_checks
node_bot -->|"imports"| node_config
node_bot -->|"imports"| node_webhooks
node_custom -->|"imports"| node_checks
node_keyword -->|"imports"| node_checks
node_todo -->|"imports"| node_dataio
node_todo -->|"imports"| node_webhooks
node_utility -->|"imports"| node_checks
node_utility -->|"imports"| node_dataio
node_utility -->|"imports"| node_config
node_quick -->|"loads commands"| node_dataio
node_checks -->|"imports"| node_dataio
node_search -.->|"searches"| node_google
node_utility -.->|"queries image source"| node_sauce

click node_bot "https://github.com/appu1232/discord-selfbot/blob/master/appuselfbot.py"
click node_custom "https://github.com/appu1232/discord-selfbot/blob/master/cogs/customcmds.py"
click node_quick "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/allmsgs.py"
click node_fun "https://github.com/appu1232/discord-selfbot/blob/master/cogs/fun.py"
click node_misc "https://github.com/appu1232/discord-selfbot/blob/master/cogs/misc.py"
click node_keyword "https://github.com/appu1232/discord-selfbot/blob/master/cogs/keywordlog.py"
click node_todo "https://github.com/appu1232/discord-selfbot/blob/master/cogs/todo.py"
click node_imagedump "https://github.com/appu1232/discord-selfbot/blob/master/cogs/imagedump.py"
click node_serverinfo "https://github.com/appu1232/discord-selfbot/blob/master/cogs/serverinfo.py"
click node_moderation "https://github.com/appu1232/discord-selfbot/blob/master/cogs/mod.py"
click node_utility "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utility.py"
click node_search "https://github.com/appu1232/discord-selfbot/blob/master/cogs/google.py"
click node_debugger "https://github.com/appu1232/discord-selfbot/blob/master/cogs/debugger.py"
click node_checks "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/checks.py"
click node_config "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/config.py"
click node_dataio "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/dataIO.py"
click node_menu "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/menu.py"
click node_webhooks "https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/webhooks.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_bot,node_user toneBlue
class node_custom,node_quick,node_fun,node_misc toneAmber
class node_keyword,node_todo,node_imagedump toneMint
class node_serverinfo,node_moderation,node_utility,node_search,node_debugger toneRose
class node_checks,node_config,node_dataio,node_menu,node_webhooks,node_discord,node_google,node_sauce toneIndigo
```

## Components

### Bot runtime

- [Bot runtime](https://github.com/appu1232/discord-selfbot/blob/master/appuselfbot.py): `appuselfbot.py`

### Commands and customization

- [Custom commands](https://github.com/appu1232/discord-selfbot/blob/master/cogs/customcmds.py): `cogs/customcmds.py`
- [Quick commands](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/allmsgs.py): `cogs/utils/allmsgs.py`
- [Meme commands](https://github.com/appu1232/discord-selfbot/blob/master/cogs/fun.py): `cogs/fun.py`
- [Status and embeds](https://github.com/appu1232/discord-selfbot/blob/master/cogs/misc.py): `cogs/misc.py`

### Tracking and records

- [Keyword logger](https://github.com/appu1232/discord-selfbot/blob/master/cogs/keywordlog.py): `cogs/keywordlog.py`
- [Todo and timers](https://github.com/appu1232/discord-selfbot/blob/master/cogs/todo.py): `cogs/todo.py`
- [Image dumps](https://github.com/appu1232/discord-selfbot/blob/master/cogs/imagedump.py): `cogs/imagedump.py`

### Discord tools

- [Server information](https://github.com/appu1232/discord-selfbot/blob/master/cogs/serverinfo.py): `cogs/serverinfo.py`
- [Moderation](https://github.com/appu1232/discord-selfbot/blob/master/cogs/mod.py): `cogs/mod.py`
- [Utility commands](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utility.py): `cogs/utility.py`
- [Search and translation](https://github.com/appu1232/discord-selfbot/blob/master/cogs/google.py): `cogs/google.py`
- [Python interpreter](https://github.com/appu1232/discord-selfbot/blob/master/cogs/debugger.py): `cogs/debugger.py`

### Shared services

- [Checks and helpers](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/checks.py): `cogs/utils/checks.py`
- [Configuration access](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/config.py): `cogs/utils/config.py`
- [JSON persistence](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/dataIO.py): `cogs/utils/dataIO.py`
- [Interactive menus](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/menu.py): `cogs/utils/menu.py`
- [Webhook client](https://github.com/appu1232/discord-selfbot/blob/master/cogs/utils/webhooks.py): `cogs/utils/webhooks.py`

### Other components

- **Selfbot user**
- **Discord**
- **Google Search**
- **SauceNAO**

## Connections

- Selfbot user → Bot runtime: issues commands (evidence: `README.md`)
- Bot runtime → Discord: sends actions (evidence: `README.md`)
- Bot runtime → Custom commands: dispatches commands
- Bot runtime → Keyword logger: handles messages
- Bot runtime → Todo and timers: dispatches commands
- Bot runtime → Image dumps: dispatches commands
- Bot runtime → Meme commands: dispatches commands
- Bot runtime → Status and embeds: dispatches commands
- Bot runtime → Server information: dispatches commands
- Bot runtime → Moderation: dispatches commands
- Bot runtime → Utility commands: dispatches commands
- Bot runtime → Search and translation: dispatches commands
- Bot runtime → Python interpreter: dispatches commands
- Bot runtime → Quick commands: imports (evidence: `appuselfbot.py`)
- Bot runtime → JSON persistence: imports (evidence: `appuselfbot.py`)
- Bot runtime → Checks and helpers: imports (evidence: `appuselfbot.py`)
- Bot runtime → Configuration access: imports (evidence: `appuselfbot.py`)
- Bot runtime → Webhook client: imports (evidence: `appuselfbot.py`)
- Custom commands → Checks and helpers: imports (evidence: `cogs/customcmds.py`)
- Keyword logger → Checks and helpers: imports (evidence: `cogs/keywordlog.py`)
- Todo and timers → JSON persistence: imports (evidence: `cogs/todo.py`)
- Todo and timers → Webhook client: imports (evidence: `cogs/todo.py`)
- Utility commands → Checks and helpers: imports (evidence: `cogs/utility.py`)
- Utility commands → JSON persistence: imports (evidence: `cogs/utility.py`)
- Utility commands → Configuration access: imports (evidence: `cogs/utility.py`)
- Quick commands → JSON persistence: loads commands (evidence: `cogs/utils/allmsgs.py`)
- Checks and helpers → JSON persistence: imports (evidence: `cogs/utils/checks.py`)
- Search and translation → Google Search: searches
- Utility commands → SauceNAO: queries image source
