[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
27d447c12d
commit
49584476ce
|
|
@ -5,7 +5,6 @@ This is in the form of a drop-in cog you can use and modify to your liking.
|
|||
This example aims to include everything you would need to make a fully functioning music bot,
|
||||
from a queue system, advanced queue control and more.
|
||||
"""
|
||||
|
||||
import math
|
||||
from contextlib import suppress
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ Copyright (c) 2024, cloudwithax
|
|||
|
||||
Licensed under GPL-3.0
|
||||
"""
|
||||
|
||||
import discord
|
||||
|
||||
if not discord.version_info.major >= 2:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
"""Apple Music module for Pomice, made possible by cloudwithax 2023"""
|
||||
|
||||
from .client import *
|
||||
from .exceptions import *
|
||||
from .objects import *
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
"""Module for managing Apple Music objects"""
|
||||
|
||||
from typing import List
|
||||
|
||||
__all__ = (
|
||||
|
|
|
|||
|
|
@ -980,7 +980,10 @@ class NodePool:
|
|||
|
||||
@classmethod
|
||||
def get_best_node(
|
||||
cls, *, algorithm: NodeAlgorithm, channel: Optional[VoiceChannel] = None,
|
||||
cls,
|
||||
*,
|
||||
algorithm: NodeAlgorithm,
|
||||
channel: Optional[VoiceChannel] = None,
|
||||
) -> Node:
|
||||
"""Fetches the best node based on an NodeAlgorithm.
|
||||
This option is preferred if you want to choose the best node
|
||||
|
|
@ -1017,7 +1020,8 @@ class NodePool:
|
|||
return cls.get_best_node(algorithm=NodeAlgorithm.by_ping)
|
||||
|
||||
if node := next(
|
||||
(node for node in available_nodes if node.location == chosen_region), None,
|
||||
(node for node in available_nodes if node.location == chosen_region),
|
||||
None,
|
||||
):
|
||||
return node
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
"""Spotify module for Pomice, made possible by cloudwithax 2023"""
|
||||
|
||||
from .client import Client
|
||||
from .exceptions import *
|
||||
from .objects import *
|
||||
|
|
|
|||
Loading…
Reference in New Issue