firebase: add uid

This commit is contained in:
kdh8219 2023-04-28 22:08:07 +09:00
parent c229ad4f59
commit a039887832
2 changed files with 1 additions and 56 deletions

View file

@ -2,6 +2,7 @@
FIREBASE_CERT_PROJECT_ID =
FIREBASE_CERT_CLIENT_EMAIL =
FIREBASE_CERT_PRIVATE_KEY =
FIREBASE_UID =
# DISCORD
# discord bot token

View file

@ -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;
// }