Skip to main content

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


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)

Uploaded Source

Built Distribution

cog_reloader-0.0.2-py3-none-any.whl (3.4 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