Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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`
- Host: GitHub
- URL: https://github.com/shahriyardx/cog-reloader
- Owner: shahriyardx
- License: mit
- Created: 2021-09-09T17:56:35.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T06:47:07.000Z (over 2 years ago)
- Last Synced: 2023-03-05T18:58:58.004Z (over 1 year ago)
- Language: Python
- Homepage: https://pypi.org/project/cog-reloader
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 commandsbot = 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