Skip to content

Commit 842c6f3

Browse files
committed
Prettier fix
1 parent a223a69 commit 842c6f3

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

events/createvc.js

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,21 @@ module.exports = {
88
name: "ready",
99
once: true,
1010
execute(client) {
11-
const timer = setInterval(function () {
12-
// Reading data from the file
13-
fs.readFile("./data/createvc.json", "utf-8", (err, jsonString) => {
14-
if (err) {
15-
console.log("Error reading file from disk:", err);
16-
return;
17-
} else {
18-
deleteExistentChannels(client, jsonString);
19-
}
20-
});
21-
// Write back to the file
22-
}, 60 * 60 * 1000);
11+
const timer = setInterval(
12+
function () {
13+
// Reading data from the file
14+
fs.readFile("./data/createvc.json", "utf-8", (err, jsonString) => {
15+
if (err) {
16+
console.log("Error reading file from disk:", err);
17+
return;
18+
} else {
19+
deleteExistentChannels(client, jsonString);
20+
}
21+
});
22+
// Write back to the file
23+
},
24+
60 * 60 * 1000,
25+
);
2326
},
2427
};
2528

0 commit comments

Comments
 (0)