Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shahriyardx/cog-reloader

Make reloading cogs easy while editing. Compitable with `nextcord` and `discord.py`
https://github.com/shahriyardx/cog-reloader

Last synced: 9 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```python
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](https://discord.gg/7SaE8v2) For any kind of help