Skip to content

Commit

Permalink
Remove "obtained" from bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel Moschkin committed Dec 13, 2023
1 parent 4d9fa37 commit 2a4a2e2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/commands/dilemma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ async function asyncHandler(message: Message, searchString: string) {
} else {
let rex = new RegExp(/.*\*\*(.+)\*\*.*/);
let embeds = [] as EmbedBuilder[];
let botCrew = DCData.getBotCrew().filter(crew => crew.obtained === 'Voyage');
let botCrew = DCData.getBotCrew().filter(crew => ["grady_crew",
"chapel_one_way_ticket_crew",
"chakotay_vori_defender_crew",
"black_admiral_crew"].includes(crew.symbol));
let legend = [] as string[];
results = JSON.parse(JSON.stringify(results));

Expand Down
2 changes: 1 addition & 1 deletion src/commands/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async function asyncHandler(message: Message, searchString: string, raritySearch
if (typeof crew.date_added === 'string') crew.date_added = new Date(crew.date_added);
embed = embed
.addFields({ name: 'Date Added', value: crew.date_added.toDateString(), inline: true })
.addFields({ name: 'Obtained', value: crew.obtained, inline: true })
//.addFields({ name: 'Obtained', value: crew.obtained, inline: true })
.addFields({ name: 'In Portal', value: crew.in_portal ? "Yes" : "No", inline: true })
}

Expand Down
2 changes: 1 addition & 1 deletion src/datacore/crew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface CrewMember {
events: number
in_portal: boolean
date_added: Date
obtained: string
obtained?: string
markdownContent: string
markdownInfo: MarkdownInfo;
unique_polestar_combos?: string[][]
Expand Down
2 changes: 1 addition & 1 deletion src/utils/definitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ declare namespace Definitions {
creator?: string;
}[];
date_added: Date | string;
obtained: string;
obtained?: string;
// Added by the loading code
traits_pseudo: string[];
traits: string[];
Expand Down

0 comments on commit 2a4a2e2

Please sign in to comment.