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",
|
"Allow non-standard prefixes like premium emojis or multi-symbol prefixes",
|
||||||
validator=loader.validators.Boolean(),
|
validator=loader.validators.Boolean(),
|
||||||
),
|
),
|
||||||
loader.ConfigValue(
|
|
||||||
"allow_aliases_with_args",
|
|
||||||
False,
|
|
||||||
"Allow aliases to have arguments",
|
|
||||||
validator=loader.validators.Boolean(),
|
|
||||||
),
|
|
||||||
loader.ConfigValue(
|
loader.ConfigValue(
|
||||||
"alias_emoji",
|
"alias_emoji",
|
||||||
"<emoji document_id=4974259868996207180>▪️</emoji>",
|
"<emoji document_id=4974259868996207180>▪️</emoji>",
|
||||||
|
@ -246,11 +240,7 @@ class CoreMod(loader.Module):
|
||||||
|
|
||||||
@loader.command()
|
@loader.command()
|
||||||
async def addalias(self, message: Message):
|
async def addalias(self, message: Message):
|
||||||
if (
|
if len(args := utils.get_args(message)) < 2:
|
||||||
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"]
|
|
||||||
):
|
|
||||||
await utils.answer(message, self.strings("alias_args"))
|
await utils.answer(message, self.strings("alias_args"))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue