This commit is contained in:
Firepup Sixfifty 2023-11-08 21:41:07 -06:00
parent d9b42eef4a
commit b90d9c02f3
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ from typing import Union, Any
load_dotenv() load_dotenv()
__version__ = "v2.0.3" __version__ = "v2.0.3"
npbase: str = "\[\x0303last\.fm\x03\] [A-Za-z0-9_[\]{}\\|^]{1,$MAX} (is listening|last listened) to: \x02.+ - .*\x02( \([0-9]+ plays\)( \[.*\])?)?" npbase: str = "\[\x0303last\.fm\x03\] [A-Za-z0-9_[\]{}\\|^]{1,$MAX} (is listening|last listened) to: \x02.+ - .*\x02( \([0-9]+ plays\)( \[.*\])?)?"
su = "^(su|sudo|(su .*|sudo .*))$" # type: ignore su = "^(su|sudo|(su .*|sudo .*))$"
servers: dict[str, dict[str, Any]] = { servers: dict[str, dict[str, Any]] = {
"ircnow": { "ircnow": {
"address": "localhost", "address": "localhost",

View file

@ -38,5 +38,5 @@ class bytes(bbytes):
return cls.value # type: ignore return cls.value # type: ignore
@classmethod @classmethod
def lazy_decode(self): def lazy_decode(cls):
return str(self.value)[2:-1] return str(cls.value)[2:-1]