mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
[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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user