CI/CD Pipeline / Unit Tests (Python 3.12) (push) Successful in 36s
CI/CD Pipeline / Unit Tests (Python 3.13) (push) Successful in 35s
CI/CD Pipeline / Code Quality & Linting (push) Successful in 35s
CI/CD Pipeline / Security Scanning (push) Successful in 31s
CI/CD Pipeline / Unit Tests (Python 3.11) (push) Successful in 30s
CI/CD Pipeline / Integration Tests (push) Successful in 18s
CI/CD Pipeline / Generate Test Report (push) Successful in 11s
CI/CD Pipeline / Build Docker Image (push) Successful in 36s
CI/CD Pipeline / CI/CD Pipeline Status (push) Successful in 2s
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
"""
|
|
Pterodisbot
|
|
|
|
A feature-rich Discord bot for monitoring and managing Pterodactyl/Pelican Panel
|
|
game servers through Discord, providing real-time status monitoring and control
|
|
capabilities with an intuitive interface.
|
|
|
|
Modules:
|
|
- config: Configuration management and validation
|
|
- api: Panel API client (Pterodactyl/Pelican)
|
|
- models: Pydantic data models
|
|
- metrics: Server metrics tracking and graph generation
|
|
- embeds: Discord embed management and persistence
|
|
- views: Discord UI components (buttons, dropdowns)
|
|
- bot: Main bot class and command definitions
|
|
- exceptions: Custom exception classes
|
|
"""
|
|
|
|
__version__ = "1.3.0"
|
|
__author__ = "Eaven Kimura"
|
|
|
|
from config import Config, load_config, generate_config_from_env
|
|
from exceptions import (
|
|
PterodisBotError,
|
|
ConfigValidationError,
|
|
APIError,
|
|
ServerNotFoundError,
|
|
PermissionError,
|
|
EmbedNotFoundError,
|
|
MetricsError,
|
|
)
|
|
|
|
__all__ = [
|
|
"Config",
|
|
"load_config",
|
|
"generate_config_from_env",
|
|
"PterodisBotError",
|
|
"ConfigValidationError",
|
|
"APIError",
|
|
"ServerNotFoundError",
|
|
"PermissionError",
|
|
"EmbedNotFoundError",
|
|
"MetricsError",
|
|
] |