[V3] Make bot send typing whilst loading cogs (#1756)

* Show bot is responsive during cog load

* Log download of Lavalink.jar event

* Fix #1709's other bug

* Reformat

* Update core_commands.py from merge
This commit is contained in:
Tobotimus
2018-06-03 08:06:10 +10:00
committed by Will
parent 622382f425
commit 0d193d3e9e
3 changed files with 16 additions and 11 deletions

View File

@@ -501,7 +501,8 @@ class Core(CoreLogic):
"""Loads packages"""
cog_names = [c.strip() for c in cog_name.split(" ")]
loaded, failed, not_found = await self._load(cog_names)
async with ctx.typing():
loaded, failed, not_found = await self._load(cog_names)
if loaded:
fmt = "Loaded {packs}"
@@ -546,8 +547,8 @@ class Core(CoreLogic):
"""Reloads packages"""
cog_names = [c.strip() for c in cog_name.split(" ")]
loaded, failed, not_found = await self._reload(cog_names)
async with ctx.typing():
loaded, failed, not_found = await self._reload(cog_names)
if loaded:
fmt = "Package{plural} {packs} {other} reloaded."