Skip to main content

Allow hotswaping of extensions for pycord a fork of discord.py cogs

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
  • Enchance 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.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

coghotswap-0.0.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file coghotswap-0.0.1.tar.gz.

File metadata

  • Download URL: coghotswap-0.0.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for coghotswap-0.0.1.tar.gz
Algorithm Hash digest
SHA256 06f519c4f3fadec0ff7d9bf3f28f557bf28c42bf3f870a33265424ab19fe71fa
MD5 dbfa1e0cf7c4a701abd5ab23ee4e0216
BLAKE2b-256 fcd4a44c0774cf7b0a55e3ca831185154228642d39a7d56cd2c2ea07f2e3a0ab

See more details on using hashes here.

File details

Details for the file coghotswap-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: coghotswap-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for coghotswap-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06be3f06446acf2809cab991272f91358afa23eda1b025d454e6168558855448
MD5 1aa92532ed5682714891c95aba2f10d4
BLAKE2b-256 412a553ba727067df92027099ca3737a82ff837a70ef407ee7590371d2240962

See more details on using hashes here.

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