Discord Package - Discord Bots Packager
Description
Discord Package is a command line tool for creating and managing Discord bots in Python (currently in BETA). It also includes a simple web monitor to view bot logs in real time, allowing for better visualization and debugging.
Features
- Discord bot project generation: Quickly creates a new bot project with the necessary file and folder structure.
- Refresh: The packer is constantly watching for changes in the working directory and will restart the bot if any changes are detected.
- Real-time log monitoring: A built-in web server that displays the bot logs in real time in a web interface.
- Advanced filters: Filter logs by server name, server ID, user name and date for easy debugging.
Requirements
- Python 3.6 or higher.
- Additional dependencies:
discord.py,watchdog,asyncio,datetime,requests,rich.
Installation
1. Install discord-package
pip install discord-package
2. Install dependencies
pip install -r requirements.txt
Usage
Create a New Bot Project
To create a new Discord bot project, use the following command:
dcp create <nombre_del_proyecto>
Replace <project_name> with the name you want for your new project. This command will create a project structure with all necessary files and folders.
Project Structure
The create command will generate a project structure similar to the following:
project_name/
│
├── assets/
│ ├── imagen/
│ │ └── mi_imagen.png
│ └── **init**.py
├── buttons/
│ ├── **init**.py
│ └── buttons_help.py
├── commands/
│ ├── **init**.py
│ └── ping.py
├── config/
│ ├── **init**.py
│ └── bot_config.py
├── functions/
│ ├── **init**.py
│ └── print_logs.py
├── logs/
│ ├── **init**.py
│ └── logs.txt
├── monitor/
│ ├── **init**.py
│ ├── index.html
│ ├── style.css
│ ├── script.js
│ └── monitor.py
├── utils/
│ ├── **init**.py
│ └── error_message.py
├── bot.py
├── dev.py
├── requirements.txt
└── .gitignore
Running the Bot in development mode
python dev.py
Running the Bot in production mode
python bot.py
Disclaimer
Discord Package is not an official Discord product. It is a tool created by Polaris Web3 to help developers create and manage Discord bots easily.
For more information: Documentation
Metadata
Release files for discord-package 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| discord_package-0.0.4.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| discord_package-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / discord_package-0.0.4.tar.gz
| Download URL | discord_package-0.0.4.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
720049397c6dfc3c864293add7dbc41dd019dab74dc39abf56bd841e2e455fa1
|
|
BLAKE2b-256 checksum How to use checksums |
c3c79b2b7d37092f6950251ec41f999f452645a9b353e96e12f38ee24b12e11a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / discord_package-0.0.4-py3-none-any.whl
| Download URL | discord_package-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
591754d26948fde94ecef4abc954f81092a821034ca25b5683aff6534641bc1d
|
|
BLAKE2b-256 checksum How to use checksums |
6cfd4ce83418310a8e39ca255619bfe3755c09b5b8ff657dce6ddd27bd794bd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|