made more commands respect memory setting

This commit is contained in:
ctih1 2025-07-25 23:22:16 +03:00
parent 5773e5d083
commit 90d301c054
2 changed files with 2 additions and 2 deletions

View file

@ -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":

View file

@ -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: