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 @@ import re
|
||||
from . import Redis, eor, get_string, udB, ultroid_cmd
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="setdb ?(.*)", fullsudo=True)
|
||||
@ultroid_cmd(pattern="setdb( (.*)|$)", fullsudo=True)
|
||||
async def _(ult):
|
||||
match = ult.pattern_match.group(1)
|
||||
match = ult.pattern_match.group(1).strip()
|
||||
if not match:
|
||||
return await ult.eor("Provide key and value to set!")
|
||||
try:
|
||||
@@ -50,9 +50,9 @@ async def _(ult):
|
||||
await ult.eor(get_string("com_7"))
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="deldb ?(.*)", fullsudo=True)
|
||||
@ultroid_cmd(pattern="deldb( (.*)|$)", fullsudo=True)
|
||||
async def _(ult):
|
||||
key = ult.pattern_match.group(1)
|
||||
key = ult.pattern_match.group(1).strip()
|
||||
if not key:
|
||||
return await ult.eor("Give me a key name to delete!", time=5)
|
||||
_ = key.split(maxsplit=1)
|
||||
@@ -70,9 +70,9 @@ async def _(ult):
|
||||
await ult.eor(get_string("com_7"))
|
||||
|
||||
|
||||
@ultroid_cmd(pattern="rendb ?(.*)", fullsudo=True)
|
||||
@ultroid_cmd(pattern="rendb( (.*)|$)", fullsudo=True)
|
||||
async def _(ult):
|
||||
match = ult.pattern_match.group(1)
|
||||
match = ult.pattern_match.group(1).strip()
|
||||
if not match:
|
||||
return await ult.eor("`Provide Keys name to rename..`")
|
||||
delim = " " if re.search("[|]", match) is None else " | "
|
||||
|
||||
Reference in New Issue
Block a user