diff --git a/assets/cogs/filesharing.py b/assets/cogs/filesharing.py index fe562ca..441375c 100644 --- a/assets/cogs/filesharing.py +++ b/assets/cogs/filesharing.py @@ -33,7 +33,7 @@ class FileSync(commands.Cog): if self.mode == "s": await ctx.send(f"<@{self.peer_id}> FILE_TRANSFER_REQUEST") - await ctx.send(file=discord.File("memory.json")) + await ctx.send(file=discord.File(settings["bot"]["active_memory"])) await ctx.send("File sent in this channel.") elif self.mode == "r": diff --git a/assets/cogs/internal/base_commands.py b/assets/cogs/internal/base_commands.py index 62b6ff6..29c0205 100644 --- a/assets/cogs/internal/base_commands.py +++ b/assets/cogs/internal/base_commands.py @@ -115,7 +115,7 @@ class BaseCommands(commands.Cog): @commands.command() async def stats(self, ctx: commands.Context) -> None: - memory_file: str = "memory.json" + memory_file: str = settings["bot"]["active_memory"] file_size: int = os.path.getsize(memory_file) with open(memory_file, "r") as file: