Archived
1
0
Fork 0

add disable_mm option

This commit is contained in:
yzhh 2022-01-18 17:57:22 +08:00
parent 2637f59611
commit 90eea43b53

View file

@ -27,9 +27,9 @@ class Plain:
class Url: class Url:
mm = False mm = False
def __init__(self, url: str): def __init__(self, url: str, disable_mm: bool = False):
self.url = url self.url = url
if Url.mm: if Url.mm and not disable_mm:
mm_url = f'https://middleman.wdf.ink/?source=akaribot&rot13=%s' mm_url = f'https://middleman.wdf.ink/?source=akaribot&rot13=%s'
rot13 = str.maketrans( rot13 = str.maketrans(
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",