Merge pull request #170 from Rilliat/dev-test

pull/171/head
ZetGo | Aleksej K. 2025-08-24 02:24:05 +03:00 committed by GitHub
commit 4f8cee3794
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 11 deletions

View File

@ -34,12 +34,6 @@ class CoreMod(loader.Module):
"Allow non-standard prefixes like premium emojis or multi-symbol prefixes",
validator=loader.validators.Boolean(),
),
loader.ConfigValue(
"allow_aliases_with_args",
False,
"Allow aliases to have arguments",
validator=loader.validators.Boolean(),
),
loader.ConfigValue(
"alias_emoji",
"<emoji document_id=4974259868996207180>▪️</emoji>",
@ -246,11 +240,7 @@ class CoreMod(loader.Module):
@loader.command()
async def addalias(self, message: Message):
if (
len(args := utils.get_args(message)) != 2
and not self.config["allow_aliases_with_args"]
or len(args) < 2 and self.config["allow_aliases_with_args"]
):
if len(args := utils.get_args(message)) < 2:
await utils.answer(message, self.strings("alias_args"))
return