mirror of https://github.com/coddrago/Heroku
Merge pull request #170 from Rilliat/dev-test
commit
4f8cee3794
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue