[Docs] Trivia user guide #4566

Merged
palmtree5 merged 10 commits from V3/docs/trivia_user_guide into V3/develop 2021-02-20 20:38:19 +01:00
palmtree5 commented 2020-10-29 04:48:43 +01:00 (Migrated from github.com)

Enhancement request

Describe the enhancement

In our quest to add user guides for every cog, I'm opening this to indicate that I am working on this one.

I'm planning to include a section on creating custom lists as well.

Does this enhancement break existing functionality?

  • Yes
  • No
# Enhancement request <!-- THIS TEMPLATE IS CURRENTLY UNUSED DUE TO GITHUB LIMITATIONS! To be used for PRs which enhance existing features --> #### Describe the enhancement <!-- Describe what your changes do. If adding commands, describe any restrictions on their usage. - For example, who can use the command? Where can it be used? --> In our quest to add user guides for every cog, I'm opening this to indicate that I am working on this one. I'm planning to include a section on creating custom lists as well. #### Does this enhancement break existing functionality? <!-- To check a box, replace the space between the [] with a x --> - [ ] Yes - [x] No
palmtree5 commented 2020-10-31 05:26:11 +01:00 (Migrated from github.com)

This is ready for review

This is ready for review
bobloy (Migrated from github.com) reviewed 2020-11-05 20:21:24 +01:00
@ -0,0 +1,434 @@
.. _trivia:
bobloy (Migrated from github.com) commented 2020-11-05 20:21:24 +01:00

Looks like this part of the guide is not finished yet. Is this intentional?

Looks like this part of the guide is not finished yet. Is this intentional?
bobloy (Migrated from github.com) requested changes 2020-11-06 16:56:19 +01:00
bobloy (Migrated from github.com) left a comment

Arguments were not displaying properly. Switched to dashes and tab indents.
Still figuring out how to submit a review, ignore this.

~~Arguments were not displaying properly. Switched to dashes and tab indents.~~ Still figuring out how to submit a review, ignore this.
bobloy (Migrated from github.com) requested changes 2020-11-06 17:13:33 +01:00
bobloy (Migrated from github.com) left a comment

Switched * to - to use better formatting.
Needed additional indents and blank lines in some spaces.

Colon after argument looks bad in my opinion, so removed them.

Switched * to - to use better formatting. Needed additional indents and blank lines in some spaces. Colon after argument looks bad in my opinion, so removed them.
@ -0,0 +1,434 @@
.. _trivia:
bobloy (Migrated from github.com) commented 2020-11-06 17:03:50 +01:00
- ``<true_or_false>`` If ``true``, the bot will gain a point if nobody
```suggestion - ``<true_or_false>`` If ``true``, the bot will gain a point if nobody ```
bobloy (Migrated from github.com) commented 2020-11-06 17:04:30 +01:00

- ``<score>`` The amount of points required to win.
```suggestion - ``<score>`` The amount of points required to win. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:04:50 +01:00

Blank line required to display correctly

Blank line required to display correctly
bobloy (Migrated from github.com) commented 2020-11-06 17:05:10 +01:00
- ``<enabled>`` Whether trivia lists should be able to override settings.
```suggestion - ``<enabled>`` Whether trivia lists should be able to override settings. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:05:42 +01:00
- ``<multiplier>`` The amount to multiply the winner's score by to determine payout.
```suggestion - ``<multiplier>`` The amount to multiply the winner's score by to determine payout. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:06:42 +01:00
- ``<true_or_false>`` If ``true``, the bot will reveal the answer if there is no
```suggestion - ``<true_or_false>`` If ``true``, the bot will reveal the answer if there is no ```
bobloy (Migrated from github.com) commented 2020-11-06 17:07:05 +01:00
- ``<seconds>`` The number of seconds to wait before stopping the session.
```suggestion - ``<seconds>`` The number of seconds to wait before stopping the session. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:07:22 +01:00
- ``<seconds>`` The number of seconds to wait for an answer.
```suggestion - ``<seconds>`` The number of seconds to wait for an answer. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:07:39 +01:00
- ``<name>`` The name of the custom list to be deleted.
```suggestion - ``<name>`` The name of the custom list to be deleted. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:07:58 +01:00
- ``[categories...]`` The category to play. Can be multiple.
```suggestion - ``[categories...]`` The category to play. Can be multiple. ```
bobloy (Migrated from github.com) commented 2020-11-06 17:10:30 +01:00
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:
    - ``wins`` Total wins
    - ``avg`` Average score
    - ``total`` Total correct answers from all sessions
    - ``games`` Total games played.

- ``[top=10]`` The number of ranks to show on the leaderboard. Defaults to 10
```suggestion - ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of: - ``wins`` Total wins - ``avg`` Average score - ``total`` Total correct answers from all sessions - ``games`` Total games played. - ``[top=10]`` The number of ranks to show on the leaderboard. Defaults to 10 ```
bobloy (Migrated from github.com) commented 2020-11-06 17:11:09 +01:00

Must be tab indented to format correctly. Otherwise looks like this:
image

Must be tab indented to format correctly. Otherwise looks like this: ![image](https://user-images.githubusercontent.com/955640/98388409-b99c4280-2020-11eb-8716-d3c357ee93b7.png)
bobloy (Migrated from github.com) commented 2020-11-06 17:12:15 +01:00
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:
    - ``wins`` Total wins
    - ``avg`` Average score
    - ``total`` Total correct answers from all sessions
    - ``games`` Total games played.

- ``[top=10]`` The number of ranks to show on the leaderboard. Defaults to 10
```suggestion - ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of: - ``wins`` Total wins - ``avg`` Average score - ``total`` Total correct answers from all sessions - ``games`` Total games played. - ``[top=10]`` The number of ranks to show on the leaderboard. Defaults to 10 ```
bobloy (Migrated from github.com) reviewed 2020-11-06 17:14:47 +01:00
@ -0,0 +1,434 @@
.. _trivia:
bobloy (Migrated from github.com) commented 2020-11-06 17:14:47 +01:00

Same as above, requires 4 space/tab indents to trigger new lines

Same as above, requires 4 space/tab indents to trigger new lines
palmtree5 (Migrated from github.com) reviewed 2020-11-07 07:13:27 +01:00
@ -0,0 +1,434 @@
.. _trivia:
palmtree5 (Migrated from github.com) commented 2020-11-07 07:13:27 +01:00

uhh, atm I'm not sure how I want to go about that, especially if we were to consider accepting #4580 as a suggestion to be implemented as that would probably require adding to/rewriting these instructions anyway. I know I also had the thought of having some way of interactively creating a trivia list through a command in Discord and then just responding to prompts but no work has gone into that as of yet. For now, I will probably just remove that section and then work on it down the line

uhh, atm I'm not sure how I want to go about that, especially if we were to consider accepting #4580 as a suggestion to be implemented as that would probably require adding to/rewriting these instructions anyway. I know I also had the thought of having some way of interactively creating a trivia list through a command in Discord and then just responding to prompts but no work has gone into that as of yet. For now, I will probably just remove that section and then work on it down the line
bobloy (Migrated from github.com) reviewed 2020-11-11 15:26:54 +01:00
bobloy (Migrated from github.com) left a comment

Two odd things I noticed, not sure what the fix is.

Two odd things I noticed, not sure what the fix is.
@ -0,0 +365,4 @@
**Arguments**
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:
bobloy (Migrated from github.com) commented 2020-11-11 15:26:08 +01:00

For some reason, RST is compiling this line as bold. Not sure why.

For some reason, RST is compiling this line as bold. Not sure why.
@ -0,0 +392,4 @@
**Arguments**
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:
bobloy (Migrated from github.com) commented 2020-11-11 15:26:25 +01:00

This line is also bold somehow.

This line is also bold somehow.
bobloy (Migrated from github.com) reviewed 2020-11-11 15:32:02 +01:00
@ -0,0 +365,4 @@
**Arguments**
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:
bobloy (Migrated from github.com) commented 2020-11-11 15:32:01 +01:00

image

![image](https://user-images.githubusercontent.com/955640/98823992-bf1ed180-2400-11eb-9d22-34c74dff50ab.png)
bobloy (Migrated from github.com) reviewed 2020-11-11 15:36:33 +01:00
@ -0,0 +365,4 @@
**Arguments**
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:
bobloy (Migrated from github.com) commented 2020-11-11 15:36:32 +01:00
- ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of:

Adding a blank line fixed it for me.

```suggestion - ``[sort_by=wins]`` The method by which to sort the leaderboard (defaults to wins). Can be one of: ``` Adding a blank line fixed it for me.
palmtree5 commented 2020-11-12 05:48:05 +01:00 (Migrated from github.com)

For now I've gone ahead and removed the list creation guide section (to be revisited down the line) and will make a separate issue for that

For now I've gone ahead and removed the list creation guide section (to be revisited down the line) and will make a separate issue for that
palmtree5 commented 2020-12-30 06:05:05 +01:00 (Migrated from github.com)

Merge conflict resolved

Merge conflict resolved
Flame442 (Migrated from github.com) requested changes 2021-01-04 23:07:27 +01:00
Flame442 (Migrated from github.com) left a comment

This looks all set, the only thing that's missing are the permissions warnings for the commands. You can take a look at some of the other cog guides to see what I mean, things like |mod-lock|.

This looks all set, the only thing that's missing are the permissions warnings for the commands. You can take a look at some of the other cog guides to see what I mean, things like `|mod-lock|`.
@ -0,0 +1,434 @@
.. _trivia:
Flame442 (Migrated from github.com) commented 2021-01-04 23:07:04 +01:00
    [p]trivia <categories...>
```suggestion [p]trivia <categories...> ```
Flame442 (Migrated from github.com) commented 2021-01-04 23:07:18 +01:00
- ``<categories...>`` The category to play. Can be multiple.
```suggestion - ``<categories...>`` The category to play. Can be multiple. ```
Flame442 (Migrated from github.com) approved these changes 2021-02-20 20:37:47 +01:00
Flame442 (Migrated from github.com) left a comment

All set! Thanks for making those changes!

All set! Thanks for making those changes!
Sign in to join this conversation.
No reviewers
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 milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!4566
No description provided.