bot.js
// Delete all the Scripts from the cache.

Delete all the Scripts from the cache.
Delete all the Scripts from the cache .
function deleteScripts() {
    fs.readdirSync("./Scripts").forEach((file) => {
        delete require.cache[require.resolve("./Scripts/" + file)];
    });
}
function deleteScripts ( ) { fs . readdirSync ( "./Scripts" ) . forEach ( ( file ) => { delete require . cache [ require . resolve ( "./Scripts/" + file ) ] ; } ) ; }
Delete all the Scripts from the cache.
Delete all the Scripts from the cache .