diff --git a/.env.example b/.env.example index 8bff73b..7228bd3 100644 --- a/.env.example +++ b/.env.example @@ -2,6 +2,7 @@ FIREBASE_CERT_PROJECT_ID = FIREBASE_CERT_CLIENT_EMAIL = FIREBASE_CERT_PRIVATE_KEY = +FIREBASE_UID = # DISCORD # discord bot token diff --git a/src/functions.ts b/src/functions.ts index 3f67454..6e60b91 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -18,59 +18,3 @@ export type TUser = { discord_id: string; // id minecraft_uuid: string; //uuid }; - -// export type TData = { -// blacklist: TUser[]; -// members: TUser[]; -// }; -// export enum EUserType { -// Unregistered, -// Blacklisted, -// Member, -// } -// export function check_user_type_by_discord_id( -// data: TData, -// discord_id: string -// ): EUserType { -// for (let discord_search_point in data["blacklist"]) { -// if (data.blacklist[discord_search_point].discord === discord_id) { -// return EUserType.Blacklisted; -// } -// } -// for (let discord_search_point in data["members"]) { -// if (data.blacklist[discord_search_point].discord === discord_id) { -// return EUserType.Member; -// } -// } -// return EUserType.Unregistered; -// } - -// export function check_user_type_by_minecraft_uuid( -// data: TData, -// minecraft_uuid: string -// ): EUserType { -// for (let discord_search_point in data.blacklist) { -// for (let minecraft_search_point in data.blacklist[discord_search_point] -// .minecraft) { -// if ( -// data.blacklist[discord_search_point].minecraft[ -// minecraft_search_point -// ] === minecraft_uuid -// ) { -// return EUserType.Blacklisted; -// } -// } -// } -// for (let discord_search_point in data.members) { -// for (let minecraft_search_point in data.members[discord_search_point] -// .minecraft) { -// if ( -// data.members[discord_search_point].minecraft[minecraft_search_point] === -// minecraft_uuid -// ) { -// return EUserType.Member; -// } -// } -// } -// return EUserType.Unregistered; -// }