Fix a bunch of linter errors
diff --git a/ClicksMigratingProblems/randomPunishments.js b/ClicksMigratingProblems/randomPunishments.js
index c9162e3..4ea01d2 100644
--- a/ClicksMigratingProblems/randomPunishments.js
+++ b/ClicksMigratingProblems/randomPunishments.js
@@ -7,20 +7,53 @@
for (let i = 0; i < 100; i++) {
// Select a type
- let type = ["join", "unban", "leave", "ban", "softban", "kick", "mute", "purge", "warn", "nickname"][Math.floor(Math.random() * 9)];
+ let type = [
+ "join",
+ "unban",
+ "leave",
+ "ban",
+ "softban",
+ "kick",
+ "mute",
+ "purge",
+ "warn",
+ "nickname"
+ ][Math.floor(Math.random() * 9)];
// Select a random date in the last year
- let date = new Date(new Date().getTime() - Math.floor(Math.random() * 31536000000));
+ let date = new Date(
+ new Date().getTime() - Math.floor(Math.random() * 31536000000)
+ );
// Add to database
await collection.insertOne({
type: type,
occurredAt: date,
user: "438733159748599813",
guild: "864185037078790195",
- moderator: (["unban", "ban", "softban", "kick", "mute", "purge", "warn"].includes(type)) ? "438733159748599813" : null,
- reason: (["unban", "ban", "softban", "kick", "mute", "purge", "warn"].includes(type)) ? "Test" : null,
- before: (type === "nickname") ? "TestBefore" : null,
- after: (type === "nickname") ? "TestAfter" : null,
- amount: (type === "purge") ? Math.floor(Math.random() * 100) : null
+ moderator: [
+ "unban",
+ "ban",
+ "softban",
+ "kick",
+ "mute",
+ "purge",
+ "warn"
+ ].includes(type)
+ ? "438733159748599813"
+ : null,
+ reason: [
+ "unban",
+ "ban",
+ "softban",
+ "kick",
+ "mute",
+ "purge",
+ "warn"
+ ].includes(type)
+ ? "Test"
+ : null,
+ before: type === "nickname" ? "TestBefore" : null,
+ after: type === "nickname" ? "TestAfter" : null,
+ amount: type === "purge" ? Math.floor(Math.random() * 100) : null
});
console.log("Inserted document " + i);
}