[Downloader] Better user facing feedback on cog update (#2165)

This commit is contained in:
Michael H
2018-10-05 18:24:55 -04:00
committed by Toby Harradine
parent fb839084fe
commit d79996aeea
3 changed files with 67 additions and 29 deletions

View File

@@ -545,12 +545,10 @@ class Core(commands.Cog, CoreLogic):
@commands.command(name="reload")
@checks.is_owner()
async def reload_(self, ctx, *, cog_name: str):
async def reload(self, ctx, *cogs: str):
"""Reloads packages"""
cog_names = [c.strip() for c in cog_name.split(" ")]
async with ctx.typing():
loaded, failed, not_found = await self._reload(cog_names)
loaded, failed, not_found = await self._reload(cogs)
if loaded:
fmt = "Package{plural} {packs} {other} reloaded."