diff --git a/commands/voice/playback.py b/commands/voice/playback.py index e23288d..345e252 100644 --- a/commands/voice/playback.py +++ b/commands/voice/playback.py @@ -90,7 +90,9 @@ async def pause(message): async def fast_forward(message): tokens = commands.tokenize(message.content) - parser = arguments.ArgumentParser(tokens[0], "skip the current sponsorblock segment") + parser = arguments.ArgumentParser( + tokens[0], "skip the current sponsorblock segment" + ) parser.add_argument( "-s", "--seconds", diff --git a/commands/voice/queue.py b/commands/voice/queue.py index b648888..13fd5ec 100644 --- a/commands/voice/queue.py +++ b/commands/voice/queue.py @@ -139,8 +139,9 @@ async def queue_or_play(message, edited=False): and len( list( filter( - lambda queued: queued.trigger_message.author.id - == message.author.id, + lambda queued: ( + queued.trigger_message.author.id == message.author.id + ), players[message.guild.id].queue, ), ), diff --git a/core.py b/core.py index 90a816b..c1c4086 100644 --- a/core.py +++ b/core.py @@ -167,9 +167,11 @@ def rreload(reloaded_modules, module): reloaded_modules.add(module.__name__) for submodule in filter( - lambda sm: inspect.ismodule(sm) - and sm.__name__ in RELOADABLE_MODULES - and sm.__name__ not in reloaded_modules, + lambda sm: ( + inspect.ismodule(sm) + and sm.__name__ in RELOADABLE_MODULES + and sm.__name__ not in reloaded_modules + ), vars(module).values(), ): rreload(reloaded_modules, submodule) diff --git a/extra.py b/extra.py index 79df937..f1c2b4e 100644 --- a/extra.py +++ b/extra.py @@ -31,9 +31,7 @@ async def transcript( ): continue - while ( - players[message.guild.id].current.player.original.progress < line.start - ): + while players[message.guild.id].current.player.original.progress < line.start: await asyncio.sleep(0.2) messages.insert(