diff --git a/techsupport_bot/commands/factoids.py b/techsupport_bot/commands/factoids.py index 1af87ed6..10e66de2 100644 --- a/techsupport_bot/commands/factoids.py +++ b/techsupport_bot/commands/factoids.py @@ -1564,8 +1564,6 @@ async def _json(self: Self, ctx: commands.Context, factoid_name: str) -> None: factoid = await self.get_factoid(factoid_name, str(ctx.guild.id)) - aliases_list = await self.get_list_of_aliases(factoid_name, str(ctx.guild.id)) - if not factoid.embed_config: await auxiliary.send_deny_embed( message=f"There is no embed config for `{factoid_name}`", @@ -1578,7 +1576,7 @@ async def _json(self: Self, ctx: commands.Context, factoid_name: str) -> None: json_file = discord.File( io.StringIO(formatted), filename=( - f"{aliases_list[0]}-factoid-embed-config-{datetime.datetime.utcnow()}.json" + f"{factoid_name.lower()}-factoid-embed-config-{datetime.datetime.utcnow()}.json" ), )