-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(answers): ignore incorrect_answers if there isn't #249
Conversation
Can you send a working config? I receive this error when running under a default configuration, with the incorrect_answers field removed from a category.
And this error after enabling
|
I shared the questions on the support channel on discord in a zip few days ago.
|
A question example:
|
This appears to conflict with other configurations. We will need some sort of handling for the following:
Some examples of results of the conflict:
Using the attached config, but with hangman-mode set to false:
|
So what changes i can do to get approved this PR? |
For approval, these errors need to be fixed so that your changes will not interfere with anyone else's configurations of the bot. I am willing to work on this for you when I can, but it may take some time, as some other critical fixes and changes for 2.0 will take precedence. |
I should be able to fix those crash. |
Fixes look good so far. I will do a final round of testing and approve this after 2.0 hits stable. |
Update: Still awaiting the final changes and release of 2.0. Afterwards, this PR will be my first priority here. Thanks for your patience. |
No problem, I will fix the merge conflicts on monday. |
Fixed the rebase issues. |
Ping |
Still here. I will be looking at this shortly. I'm hoping to submit any reviews (if needed) for this soon--couple weeks at the latest. Thanks again for waiting. |
You could fix this by using the exclusion array to filter out these questions if the game isn't in hangman mode. I recommend looking into creating a new type for this alongside 'boolean' and 'multiple'. These types correspond to the number of incorrect answers, which in your case is 0. If the exclusion array filters out everything, you'll see the following, which is the desired result if your whole database consists of questions that don't apply to your config (in this case, hangman-specific questions with no incorrect answers):
For both of these, see filedb,js: Assignment of type, and check of type and exclusion |
I have no time to work on this after all this months... |
I understand. Feel free to close this out, or you can keep it open if you think your situation will change eventually. |
If you can fix those issues I can share the italian question database I am using with 38000 questions. |
If this change can't be completed here, it will most likely end up on my roadmap, meaning it will likely be fixed eventually. However, I unfortunately can't guarantee a timeframe. What you do with your database is up to you--it sounds great, but I wouldn't be able to do much with it myself. |
For the database is just useless to share it if this change is not merged but i can upload it somewhere is not a problem. |
Fix #247