discord-contest-bot / discord-contest-bot

4 stars 3 forks source link

Fall back to searching AoPS #6

Open AmoleR opened 4 years ago

AmoleR commented 4 years ago

Credit: @rfeng2004

Idea: if gimme command is used with -s option, then should the contest not exactly match an existing contest name, bot will attempt a search on AoPS Contest Collections for the problem.

Example usage: (Hypothetically assume that BAMO is not already scraped) gimme BAMO 2020 4 will currently default to giving the problem USAMO 2020 4.

Proposed change: gimme -s BAMO 2020 4 will see that USAMO doesn't exactly match the contest name, and given that no match exists already, attempts a search on AoPS Contest Collections for the problem.

chonacho commented 4 years ago

Semi-fix: If Contest Collections can't yield a problem but can match the contest name (i.e. BAMO matches with Bay Area Math Olympiad) and ask user if the contest name matches => automatically suggested.

AmoleR commented 4 years ago

Problem is I don't actually have a good way to search everything. For example, I can try to look for BAMO in the main collection, but it's not there.

So that's probably an issue, unless we can figure out a recursive solution.