coghotswap-0.0.1
توضیحات
Allow hotswaping of extensions for pycord a fork of discord.py cogs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | coghotswap-0.0.1 |
| نام | coghotswap |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | TropicalShadow |
| ایمیل نویسنده | me@tropicalshadow.tech |
| آدرس صفحه اصلی | https://github.com/TropicalShadow/coghotswap |
| آدرس اینترنتی | https://pypi.org/project/coghotswap/ |
| مجوز | The MIT License (MIT) |
# CogHotSwap
> Work in progress
You ever wish that your discord bot cogs would just reload by themselves? Well now you can, by adding just one line of code to your bot we will automate the reloading of all your cogs, and hopefully give you feed back (Coming Soon Feature).
This project was built for [Pycord](https://github.com/Pycord-Development/pycord) a fork of [Discord.py](https://github.com/Rapptz/discord.py)
----
## Installation
```sh
git clone https://github.com/TropicalShadow/CogHotSwap
cd CogHotSwap
python -m pip install -U .
```
or if you have git, add this to your requirements.txt
```sh
git+https://github.com/TropicalShadow/CogHotSwap
```
----
## Coming Soon Features
- [x] List of unloaded cogs that can be loaded or have errored
- [x] Enchance the reloading of the files
----
Examples [here](examples/basic_bot.py)
```py
from discord.ext.commands import Bot
from coghotswap import Watcher
bot = Bot("!")
Watcher(bot, path="cogs")
bot.run("token")
```
----
## Need Support?
Contact me on discord `RealName_123#2570`
نیازمندی
| مقدار | نام |
|---|---|
| - | watchgod |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.* | Python |
نحوه نصب
نصب پکیج whl coghotswap-0.0.1:
pip install coghotswap-0.0.1.whl
نصب پکیج tar.gz coghotswap-0.0.1:
pip install coghotswap-0.0.1.tar.gz