From a0398878325e08772b7d42f0dd1a9ffd02cf24b9 Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 28 Apr 2023 22:08:07 +0900 Subject: [PATCH] firebase: add uid --- .env.example | 1 + src/functions.ts | 56 ------------------------------------------------ 2 files changed, 1 insertion(+), 56 deletions(-) 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; -// }