Document setting overrides in Trivia list format #5390
No reviewers
Labels
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!5390
Loading…
Reference in a new issue
No description provided.
Delete branch "trivia-override-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Document the CONFIG key in the Trivia List Creation Guide, fixes #3977
Doc build at https://red-discordbot--5390.org.readthedocs.build/en/5390/guide_trivia_list_creation.html#optional-custom-overrides
Also fix the spelling of medallist :)
I'm not sure something like "bool" or "int" tells a regular user (as in, not a developer) much and that's who we target with this document.
That's certainly a very valid point that I hadn't considered, thanks for pointing it out.
Most of these accept any number with or without fractional component but there's also
max_scorewhich only accepts integers. Do you think this could be improved in some way?I've added decimals to the defaults which accept them and clarified "whole number" for
max_score.Would it be worth a new issue to actually validate these, as at the moment anything would be accepted?
They are validated, see #4571/#4659.
As for the change, I'm not entirely sure "whole number" is clearer than "integer" would have been. I'm not a native speaker so someone else might want to chime in here.
As far as I'm aware, integers can be positive or negative while whole numbers are always positive - and a negative number for max_score (well, as well as 0) wouldn't be good.
I'm not saying that "whole number" is better as I would hope someone advanced enough to touch this wouldn't put in a negative for max score. Though, "integer" is better than "int". Basically idk either and a 3rd opinion would be useful, but from a technical standpoint I'm pretty sure "whole number" is more accurate for what's wanted, and I think it would look odd if "integer" was surrounded by "number" for the floats.
"positive number" / "positive integer" would be my votes, unless it supports zero, in which case "whole number" is best. For the floats, perhaps "number with decimal" or something like that, to avoid the oddity of using just "number" for floats?
The valid values for each of these are:
Additional notes:
timeout, equivalent[p]triviasetcommand also imposes an additional requirement that this value is higher thandelay, we might want to restrict in the same way for YAML files#5947 is now merged, this PR still needs updates to the used wording. It's been settled in #5947 so it's just a matter of making it consistent with what we use in error messages there.
medalistis a correct US spelling:https://dictionary.cambridge.org/us/dictionary/english/medalist
@ -126,0 +159,4 @@payout_multiplier: 0.5max_score: 20How many days are there in a regular year?:- 365I suggest adding a couple more numeric examples to show what can be passed (hopefully better shows the difference between an integer and a number):
If you want to correct answers in this PR, you should update answers here as well.
medalistis a correct US spelling:https://dictionary.cambridge.org/us/dictionary/english/medalist
Looks good to me, thanks for writing this new section.
#6039 is a backport of this pull request to Red 3.4.