Update Architecture
1 parent
eb650d846e
commit
99cfeec7b5
1 file changed
+8
-7
+8
-7
@@ -8,18 +8,18 @@ Pterodisbot is a modular, asynchronous Discord bot built with Python 3.8+ using
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────────────────────────────┐
|
||||
│ Discord Client │
|
||||
│ Discord Client │
|
||||
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────────────────┐ │
|
||||
│ │ Slash Cmds │ │ Buttons │ │ Dropdown Menus │ │
|
||||
│ └──────┬──────┘ └──────┬──────┘ └───────────┬─────────────┘ │
|
||||
└─────────┼────────────────┼──────────────────────┼────────────────┘
|
||||
└─────────┼────────────────┼──────────────────────┼───────────────┘
|
||||
│ │ │
|
||||
▼ ▼ ▼
|
||||
┌─────────────────────────────────────────────────────────────────┐
|
||||
│ PterodactylBot (commands.Bot) │
|
||||
│ ┌───────────────────────────────────────────────────────────┐ │
|
||||
│ │ Background Task: update_status (10s interval) │ │
|
||||
│ │ • Smart update detection (state changes, CPU, uptime) │ │
|
||||
│ │ Background Task: update_status (10s interval) │ │
|
||||
│ │ • Smart update detection (state changes, CPU, uptime) │ │
|
||||
│ │ • Rate limit protection │ │
|
||||
│ └───────────────────────────────────────────────────────────┘ │
|
||||
└─────────────────────────────┬───────────────────────────────────┘
|
||||
@@ -37,8 +37,9 @@ Pterodisbot is a modular, asynchronous Discord bot built with Python 3.8+ using
|
||||
│ │ │
|
||||
▼ ▼ ▼
|
||||
┌───────────────┐ ┌───────────────┐ ┌───────────────┐
|
||||
│ JSON Storage │ │Pterodactyl/Pelican│ │ Matplotlib │
|
||||
│(embed_locs) │ │ Panel API │ │ (PNG graphs) │
|
||||
│ JSON Storage │ │ Pterodactyl/ │ │ Matplotlib │
|
||||
│ (embed_locs) │ │ Pelican │ │ (PNG graphs) │
|
||||
| | | Panel API | | |
|
||||
└───────────────┘ └───────────────┘ └───────────────┘
|
||||
```
|
||||
|
||||
@@ -126,7 +127,7 @@ Button press (Start/Stop/Restart/Show Address)
|
||||
|
||||
```
|
||||
┌────────────────────────────────────────────────────────────┐
|
||||
│ Access Control Layers │
|
||||
│ Access Control Layers │
|
||||
├────────────────────────────────────────────────────────────┤
|
||||
│ 1. Guild Restriction (config.allowed_guild_id) │
|
||||
│ └─ Checked in: on_interaction, check_allowed_guild, │
|
||||
|
||||
Reference in new issue
Block a user