Make reloading cogs easy while editing. Compitable with `nextcord` and `discord.py`
Project description
Cog reloader
Make reloading cogs easy while editing. Compitable with nextcord
and discord.py
Warning
- Don't load this while bot is in production, Load only in development environment.
- This will not reload files that are not cog.
Installation
pip install cog-reloader
Usage
from discord.ext import commands
bot = commands.Bot(command_prefix='/')
@bot.event
async def on_ready():
print(f'We have logged in as {bot.user}')
bot.load_extension('cog_reloader') # make sure its an `_` not `-`
TOKEN = 'TOKEN_HERE'
bot.run(TOKEN)
Join Discord For any kind of help
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
cog-reloader-0.0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for cog_reloader-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 202d4c024f2f11a6fa29c75de4aa2f73bf2264f6bcf06a31a4064e51a8555202 |
|
MD5 | 6861138a65729566e94cea894ae5fad9 |
|
BLAKE2b-256 | b87c52b6813ce63fe28eac62c884f0a52a82d8bf89bea30479600fad46072c7c |