~denisebitca/esmeralde

0ffb652bbf2ca1ee273b65ea48103ec3a5ce6504 — Rafael Bitca 2 years ago 8e566bd
Okay, finally fixing config not being updated
1 files changed, 1 insertions(+), 2 deletions(-)

M src/FollowupFunctions.ts
M src/FollowupFunctions.ts => src/FollowupFunctions.ts +1 -2
@@ 63,8 63,7 @@ export class FollowupFunctions{
            //@ts-ignore
            "userList": config.userList.length === 0 ? [newUser] : config.userList.concat([newUser])
        }
        console.log(path.join(__dirname, "config.json"));
        fs.writeFileSync("./config.json", JSON.stringify(configCopy, null, 2), {encoding: "utf-8"});
        fs.writeFileSync(path.join(__dirname, "config.json"), JSON.stringify(configCopy, null, 2), {encoding: "utf-8"});
        fs.rmSync(path.join(__dirname, interaction.user.id + ".json"));
        await interaction.update({content: "Ton emploi du temps a été enregistré !", embeds: [], components: []});
    }