Ultroid v0.4 updates
Co-authored-by: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-authored-by: Danish <danish@ultroid.tech> Co-authored-by: Mahesh Chauhan <84653476+vasusen-code@users.noreply.github.com> Co-authored-by: Aditya <xditya@ultroid.tech> Co-authored-by: CyrusXD <79554993+Ashutosh1478@users.noreply.github.com>
This commit is contained in:
@@ -27,9 +27,9 @@ from . import (
|
||||
)
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="megadl ?(.*)")
|
||||
@ultroid_cmd(pattern="megadl( (.*)|$)")
|
||||
async def _(e):
|
||||
link = e.pattern_match.group(1)
|
||||
link = e.pattern_match.group(1).strip()
|
||||
if os.path.isdir("mega"):
|
||||
await bash("rm -rf mega")
|
||||
os.mkdir("mega")
|
||||
|
||||
Reference in New Issue
Block a user