Skip to content

NPM modules are broken and have wrong code #102

Closed
@2cab

Description

@2cab

so basically when i launch bot,js under node.js it will say that the module file manager has a syntax error:unexpected token (

this is what the code looks like

FileManager.prototype.saveFiles = FileManager.prototype.writeFiles = function(files) {
return new Promise(async (resolve, reject) => {
try {
await Promise.all(Object.keys(files).map(filename => this.saveFile(filename, files[filename])));
resolve();
} catch (ex) {
reject(ex);
}
});
};

it also lists many other proplems with other files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions