Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coghotswap-0.0.2.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

coghotswap-0.0.2-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page