Still got errors and warnings, mostly the same and easy to fix
diff --git a/src/utils/memory.ts b/src/utils/memory.ts
index a06705b..070bd7f 100644
--- a/src/utils/memory.ts
+++ b/src/utils/memory.ts
@@ -1,29 +1,30 @@
import client from "./client.js";
class Memory {
- memory: {};
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ memory: Record<string, any>;
constructor() {
this.memory = {};
setInterval(() => {
- for (let guild in this.memory) {
+ for (const guild in this.memory) {
if (this.memory[guild].updated + 15 * 60 * 1000 < Date.now()) {
delete this.memory[guild];
}
}
- }, 1000 * 60 * 30)
+ }, 1000 * 60 * 30);
}
async readGuildInfo(guild: string): Promise<object> {
if (!this.memory[guild]) {
- let guildData = await client.database.guilds.read(guild);
+ const guildData = await client.database.guilds.read(guild);
this.memory[guild] = {
lastUpdated: Date.now(),
filters: guildData.filters,
logging: guildData.logging,
- tickets: guildData.tickets,
+ tickets: guildData.tickets
};
- };
+ }
return this.memory[guild];
}
}