add disable_mm option
This commit is contained in:
parent
2637f59611
commit
90eea43b53
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||||
|
|
Reference in a new issue