Update alias.py (#3546)

This commit is contained in:
jack1142 2020-02-14 15:20:32 +01:00 committed by GitHub
parent 3991a2d88f
commit a763726c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,9 +356,7 @@ class Alias(commands.Cog):
base_cmd = alias.command.rsplit(" ", 1)[0]
new_msg = copy(ctx.message)
new_msg.content = _("{prefix}help {command}").format(
prefix=ctx.prefix, command=base_cmd
)
new_msg.content = f"{ctx.prefix}help {base_cmd}"
await self.bot.process_commands(new_msg)
else:
await ctx.send(_("No such alias exists."))