DiscordPyCLI-0.1.0b0
توضیحات
A Discord.py CLI to generate boilerplate code, add dependencies and cogs.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | DiscordPyCLI-0.1.0b0 |
| نام | DiscordPyCLI |
| نسخه کتابخانه | 0.1.0b0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dan6erbond / Amelia-exe |
| ایمیل نویسنده | DiscordPyCLI@gmail.com |
| آدرس صفحه اصلی | https://github.com/DPyCLI/DPyCLI |
| آدرس اینترنتی | https://pypi.org/project/DiscordPyCLI/ |
| مجوز | GNU General Public License v3 (GPLv3) |
# Discord.py Command Line Interface
A library built by [Amelia Cabotte](https://github.com/Amelia-exe) and [RaviAnand Mohabir](https://github.com/Dan6erbond).
DiscordPyCLI is a set of command line tools inspired by packages such as `npx` and `vue cli` to aid in creating Discord.py bots. The interface enables fast creation of Python projects that follow all the file structure conventions and are typed properly. Goodies such as configuration files, which can be either INI, YAML, Python or `.env` files are supported as well, and a custom `.gitignore` keeps your client information safe.
## Usage
DiscordPyCLI is launched with the `dpy` command with numerous options and flags.
### Creating a Bot
The `dpy create` command allows you to use numerous flags and options to create a Discord.py bot which
- `name`: The project's name, can be snake, kebab or camel case.
- `--cog`: Supply cogs that should be generated with the bot.
- `--basic`: Flag to create a simple instance of a `commands.Bot`, instead of the full class implementation.
Running `dpy create my-bot --cog=TestCog` and leaving all the prompts at their default will create the following base folder structure:
```
my-bot /
.gitignore
my_bot.py
requirements.txt
discord.yaml
cogs /
__init__.py
test_cog.py
```
By default the script will also generate a boilerplate help command by Dan6erbond#2259 with support for pagination and customized outputs. The bot's command prefix, description and support for Banhammer.py can all be customized during the command-run, as you will be prompted to supply additional information.
## Roadmap
- [ ] `bot add cog`
- [ ] `bot add cmd`
- [ ] `bot db create`
- [ ] `bot db model`
نیازمندی
| مقدار | نام |
|---|---|
| >=2.7.0 | inquirer |
| >=2.24.0 | requests |
| >=0.16.12 | ruamel.yaml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl DiscordPyCLI-0.1.0b0:
pip install DiscordPyCLI-0.1.0b0.whl
نصب پکیج tar.gz DiscordPyCLI-0.1.0b0:
pip install DiscordPyCLI-0.1.0b0.tar.gz