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
Release files for discord-package 2.0
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-2.0.tar.gz | 377.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| discord_package-2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 769.4 kB
Release files / discord_package-2.0.tar.gz
| Download URL | discord_package-2.0.tar.gz |
|---|---|
| Size | 377.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3df9f6397f7a35089cefabaab2e822b0cb2ddbf2355214d4a48dfd89a335509
|
|
BLAKE2b-256 checksum How to use checksums |
e118b17c8266a1b6f942d1a8f7fd6d3714d3d1fcd7eb6e0dc4e12988447db5aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|
Release files / discord_package-2.0-py3-none-any.whl
| Download URL | discord_package-2.0-py3-none-any.whl |
|---|---|
| Size | 392.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0c039e98c42d3205dfb6c5a90c02a38c66ba8a0a80379cdeefc835892f9b3a0
|
|
BLAKE2b-256 checksum How to use checksums |
f421b79afe446dd3a361b8becc517be85cde26a78a4b33f1a7d652d2924f90e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.9
|