Skip to content

Make reloading cogs easy while editing. Compitable with `nextcord` and `discord.py`

License

Notifications You must be signed in to change notification settings

shahriyardx/cog-reloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Make reloading cogs easy while editing. Compitable with `nextcord` and `discord.py`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages