2025-08-14 21:48:38 +01:00
|
|
|
import type { ModrinthServer } from '../modrinth-servers.ts'
|
2025-06-11 23:32:39 +01:00
|
|
|
|
|
|
|
|
export abstract class ServerModule {
|
2025-08-14 21:48:38 +01:00
|
|
|
protected server: ModrinthServer
|
2025-06-11 23:32:39 +01:00
|
|
|
|
2025-08-14 21:48:38 +01:00
|
|
|
constructor(server: ModrinthServer) {
|
|
|
|
|
this.server = server
|
|
|
|
|
}
|
2025-06-11 23:32:39 +01:00
|
|
|
|
2025-08-14 21:48:38 +01:00
|
|
|
protected get serverId(): string {
|
|
|
|
|
return this.server.serverId
|
|
|
|
|
}
|
2025-06-11 23:32:39 +01:00
|
|
|
|
2025-08-14 21:48:38 +01:00
|
|
|
abstract fetch(): Promise<void>
|
2025-06-11 23:32:39 +01:00
|
|
|
}
|