small PR adding [p]llset info and [p]audioset logs (#4527)

* small PR adding `[p]llset info` and `[p]audioset logs`

* fixed + improvements

* Zip file properly
This commit is contained in:
Draper
2020-10-25 21:46:59 +00:00
committed by GitHub
parent 18986bcc42
commit 38169a82df
3 changed files with 71 additions and 1 deletions

View File

@@ -220,3 +220,11 @@ def task_callback(task: asyncio.Task) -> None:
with contextlib.suppress(asyncio.CancelledError, asyncio.InvalidStateError):
if exc := task.exception():
log.exception(f"{task.get_name()} raised an Exception", exc_info=exc)
def has_internal_server():
async def pred(ctx: commands.Context):
external = await ctx.cog.config.use_external_lavalink()
return not external
return commands.check(pred)