mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 02:37:57 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user