Allow hot reloading of extensions for Pycord a fork of discord.py
Project description
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 a fork of Discord.py
Installation
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
git+https://github.com/TropicalShadow/CogHotSwap
Coming Soon Features
- List of unloaded cogs that can be loaded or have errored
- Enhance the reloading of the files
Examples here
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coghotswap-0.0.2.tar.gz.
File metadata
- Download URL: coghotswap-0.0.2.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7da2f58d9277cd381c73ebc12f769cfb633b0827cb193ae5b2ec448650f53e0
|
|
| MD5 |
f9eab4b48ec394758a6d85e7f6039c7f
|
|
| BLAKE2b-256 |
217b3b17f6e9f39ab9d37efa42b6d363c15c1488338f20ca6118a076a711ec25
|
File details
Details for the file coghotswap-0.0.2-py3-none-any.whl.
File metadata
- Download URL: coghotswap-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
082f94e840409361f9b437c03a3f0edac763cb4817bcac5fb44ee720b95c41be
|
|
| MD5 |
9665822ccd0e4d38d6e772b0c5fdf50b
|
|
| BLAKE2b-256 |
f00ca6cbe16d2562ce909c18de93e8bfb18f35ba3fb81d3103b8bd1c58620695
|