cleam up code

This commit is contained in:
cloudwithax 2023-02-05 22:56:58 -05:00
parent 14c82c1b56
commit 15d0f316a1
7 changed files with 5 additions and 15 deletions

View File

@ -18,16 +18,16 @@ if not discord.version_info.major >= 2:
"using 'pip install discord.py'"
)
__version__ = "2.0a"
__version__ = "2.0"
__title__ = "pomice"
__author__ = "cloudwithax"
from .enums import SearchType
from .enums import *
from .events import *
from .exceptions import *
from .filters import *
from .objects import *
from .queue import *
from .player import Player
from .player import *
from .pool import *

View File

@ -1,4 +1,4 @@
from enum import Enum, auto
from enum import Enum
class SearchType(Enum):

View File

@ -21,7 +21,6 @@ from .exceptions import FilterInvalidArgument, FilterTagAlreadyInUse, FilterTagI
from .filters import Filter
from .objects import Track
from .pool import Node, NodePool
from .queue import Queue
class Filters:
"""Helper class for filters"""

View File

@ -1,10 +1,7 @@
from __future__ import annotations
import asyncio
import json
import random
import secrets
import string
import re
from typing import Dict, List, Optional, TYPE_CHECKING, Union
from urllib.parse import quote
@ -26,7 +23,6 @@ from .exceptions import (
InvalidSpotifyClientAuthorization,
NodeConnectionFailure,
NodeCreationError,
NodeException,
NodeNotAvailable,
NoNodesAvailable,
NodeRestException,

View File

@ -1,8 +1,6 @@
from __future__ import annotations
import random
from collections import deque
from copy import copy
from re import L
from typing import (
Iterable,
Iterator,

View File

@ -1,4 +1,4 @@
"""Spotify module for Pomice, made possible by cloudwithax 2021"""
"""Spotify module for Pomice, made possible by cloudwithax 2023"""
from .exceptions import *
from .objects import *

View File

@ -1,12 +1,9 @@
import random
import time
import socket
from typing import Union
from timeit import default_timer as timer
from itertools import zip_longest
from discord import AutoShardedClient, Client
from discord.ext.commands import AutoShardedBot, Bot
__all__ = [
"ExponentialBackoff",