improv: black
This commit is contained in:
@@ -66,7 +66,7 @@ class MessageLog:
|
|||||||
def __eq__(self, other: object) -> bool:
|
def __eq__(self, other: object) -> bool:
|
||||||
return isinstance(other, self.__class__) and other.id == self.id
|
return isinstance(other, self.__class__) and other.id == self.id
|
||||||
|
|
||||||
def __gt__(self, other: 'MessageLog') -> bool:
|
def __gt__(self, other: "MessageLog") -> bool:
|
||||||
return self.created_at > other.created_at
|
return self.created_at > other.created_at
|
||||||
|
|
||||||
def __hash__(self) -> int:
|
def __hash__(self) -> int:
|
||||||
|
|||||||
@@ -92,7 +92,9 @@ class Scanner(ABC):
|
|||||||
dates = []
|
dates = []
|
||||||
for i, arg in enumerate(args[1:]):
|
for i, arg in enumerate(args[1:]):
|
||||||
skip_check = False
|
skip_check = False
|
||||||
if self.all_args and (f"'{arg}'" in message.content or f"\"{arg}\"" in message.content):
|
if self.all_args and (
|
||||||
|
f"'{arg}'" in message.content or f'"{arg}"' in message.content
|
||||||
|
):
|
||||||
self.other_args += [arg]
|
self.other_args += [arg]
|
||||||
elif re.match(r"^<@!?\d+>$", arg):
|
elif re.match(r"^<@!?\d+>$", arg):
|
||||||
arg = arg[3:-1] if "!" in arg else arg[2:-1]
|
arg = arg[3:-1] if "!" in arg else arg[2:-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user