Add MineGeo gameplay systems and interface

This commit is contained in:
2026-10-10 10:27:47 +05:00
parent bf01d9801d
commit 9af71c85c2
47 changed files with 9954 additions and 93 deletions

35
shared/discord.ts Normal file
View File

@@ -0,0 +1,35 @@
export type DiscordKind = "map" | "party";
export type DiscordAnnouncement = {
id: string;
kind: DiscordKind;
target_id: string;
state: "pending" | "sending" | "sent" | "skipped" | "failed";
attempts: number;
next_attempt_at: string;
lease_owner: string | null;
lease_until: string | null;
channel_id: string | null;
message_id: string | null;
last_error: string | null;
created_at: string;
sent_at: string | null;
closed_at?: string | null;
delete_after?: string | null;
deleted_at?: string | null;
cleanup_run_id?: string | null;
cleanup_lease_until?: string | null;
cleanup_error?: string | null;
};
export type PartyAnnouncement = {
available: boolean;
state: DiscordAnnouncement["state"] | null;
};
export type DiscordStatus = {
botConfigured: boolean;
publicUrlConfigured: boolean;
mapsConfigured: boolean;
partiesConfigured: boolean;
pending: number;
failed: number;
sent: number;
};