cleanup / respect allergies
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
import importlib
|
||||
|
||||
from . import discord_helpers
|
||||
|
||||
importlib.reload(discord_helpers)
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
from typing import Optional
|
||||
from aiohttp import ClientSession, ClientTimeout, FormData
|
||||
import traceback
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
import re
|
||||
import discord
|
||||
from typing import Optional, Any
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
import aiohttp
|
||||
from typing import Optional
|
||||
import regex
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
"""
|
||||
Litterbox (Catbox) Uploader (Async)
|
||||
"""
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
import os
|
||||
import logging
|
||||
from typing import LiteralString, Optional, Union
|
||||
|
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
import logging
|
||||
from typing import Optional
|
||||
from aiohttp import ClientSession, ClientTimeout
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python3.12
|
||||
import logging
|
||||
import regex
|
||||
import aiohttp
|
||||
@ -10,7 +9,7 @@ from typing import Optional, Union
|
||||
class Utility:
|
||||
"""Sing Utility"""
|
||||
def __init__(self) -> None:
|
||||
self.api_url: str = "http://127.0.0.1:52111/lyric/search"
|
||||
self.api_url: str = "http://10.10.10.100:52111/lyric/search"
|
||||
self.api_src: str = "DISC-HAVOC"
|
||||
|
||||
def parse_song_input(self, song: Optional[str] = None,
|
||||
@ -120,7 +119,7 @@ class Utility:
|
||||
if response.get('err'):
|
||||
return [(f"ERR: {response.get('errorText')}",)]
|
||||
|
||||
out_lyrics = regex.sub(r'<br>', '\u200B\n', response.get('lyrics'))
|
||||
out_lyrics = regex.sub(r'<br>', '\u200B\n', response.get('lyrics', ''))
|
||||
response_obj: dict = {
|
||||
'artist': response.get('artist'),
|
||||
'song': response.get('song'),
|
||||
|
Reference in New Issue
Block a user