[Trivia] V3 Rewrite #915

Merged
Tobotimus merged 44 commits from V3/trivia_rewrite into V3/develop 2017-11-06 01:56:56 +01:00
Tobotimus commented 2017-08-14 10:30:53 +02:00 (Migrated from github.com)

This PR supersedes #789 and as such many of the following feature suggestions came from there.

Goals

  • Get cog working in V3
  • Rewrite TriviaSession
  • Consolidate how the trivia lists are stored and read (#917)
  • Add a payout option for winning
  • Use YAML for trivia lists

Possible enhancements

  • Multiple categories per session
  • Implement some sort of leaderboard system
  • Use of embeds
  • MCQ trivia
This PR supersedes #789 and as such many of the following feature suggestions came from there. ### Goals - [x] Get cog working in V3 - [x] Rewrite `TriviaSession` - [x] Consolidate how the trivia lists are stored and read (#917) - [x] Add a payout option for winning - [x] Use YAML for trivia lists ### Possible enhancements - [x] Multiple categories per session - [x] Implement some sort of leaderboard system - [ ] Use of embeds - [ ] MCQ trivia
Twentysix26 (Migrated from github.com) reviewed 2017-08-14 10:30:53 +02:00
Tobotimus commented 2017-08-15 10:15:30 +02:00 (Migrated from github.com)

Alright, TriviaSession has just undergone some major changes, and I'm interested to see what you guys think. The back-end of this cog is now fairly complete, so please... try to break it 😄

Edit: I probably should have mentioned that although most of the back-end is complete, we are still waiting to see what we are doing with trivia lists.

Alright, `TriviaSession` has just undergone some major changes, and I'm interested to see what you guys think. The back-end of this cog is now fairly complete, so please... try to break it :smile: _Edit: I probably should have mentioned that although most of the back-end is complete, we are still waiting to see what we are doing with trivia lists._
Twentysix26 commented 2017-08-16 17:38:37 +02:00 (Migrated from github.com)

I think you can safely remove the trivia lists from your PR in the meantime. It's unlikely they'll be kept in this branch and they can eventually be added with a different pull request if needed

I think you can safely remove the trivia lists from your PR in the meantime. It's unlikely they'll be kept in this branch and they can eventually be added with a different pull request if needed
Tobotimus commented 2017-08-17 02:41:44 +02:00 (Migrated from github.com)

That's fair enough, they were only there for testing purposes, so no real reason for them to be in the repository, considering they would only be there temporarily.

But on that note, if anyone is testing this PR, trivia lists must be located in the cogs/trivia/lists folder in order to be found (until further notice).

That's fair enough, they were only there for testing purposes, so no real reason for them to be in the repository, considering they would only be there temporarily. But on that note, if anyone is testing this PR, trivia lists must be located in the `cogs/trivia/lists` folder in order to be found (until further notice).
calebj (Migrated from github.com) requested changes 2017-10-30 01:22:10 +01:00
@ -0,0 +1,307 @@
"""Module to manage trivia sessions."""
calebj (Migrated from github.com) commented 2017-10-29 22:07:53 +01:00

self.stop() isn't an async function.

`self.stop()` isn't an async function.
@ -0,0 +156,4 @@
"""
try:
message = await self.ctx.bot.wait_for(
calebj (Migrated from github.com) commented 2017-10-30 01:22:04 +01:00

I don't see anything here that would cause the issue you described. Try to debug and isolate it.

I don't see anything here that would cause the issue you described. Try to debug and isolate it.
Tobotimus commented 2017-10-30 09:23:43 +01:00 (Migrated from github.com)

I think this PR is ready for proper testing. Any extra features should probably be added in separate PRs.

To test right now, I recommend doing the following in a clean virtual environment:

pip install --process-dependency-links git+https://github.com/Tobotimus/Red-DiscordBot.git@V3/trivia_rewrite

Then run redbot as usual with redbot <instance_name>

I think this PR is ready for proper testing. Any extra features should probably be added in separate PRs. To test right now, I recommend doing the following in a clean virtual environment: ``` pip install --process-dependency-links git+https://github.com/Tobotimus/Red-DiscordBot.git@V3/trivia_rewrite ``` Then run redbot as usual with `redbot <instance_name>`
tekulvw (Migrated from github.com) requested changes 2017-10-30 13:33:32 +01:00
tekulvw (Migrated from github.com) left a comment

Can you add Red-Trivia to the requirements for the bot? I'll get it uploaded to pypi soon.

Can you add `Red-Trivia` to the requirements for the bot? I'll get it uploaded to pypi soon.
tekulvw (Migrated from github.com) reviewed 2017-11-05 19:25:43 +01:00
palmtree5 (Migrated from github.com) approved these changes 2017-11-06 01:53:28 +01:00
Sign in to join this conversation.
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!915
No description provided.