[Trivia] whosthatpokemon - tinypic urls missing #3023

Closed
opened 2019-10-02 18:21:42 +02:00 by aikaterna · 19 comments
aikaterna commented 2019-10-02 18:21:42 +02:00 (Migrated from github.com)

Other bugs

What were you trying to do?

Play trivia with the whosthatpokemon list.

What were you expecting to happen?

For a silhouette of a pokemon to show.

What actually happened?

The image is gone.

How can we reproduce this issue?

Play trivia with the whosthatpokemon list and have it show any tinypic url.

# Other bugs #### What were you trying to do? Play trivia with the whosthatpokemon list. #### What were you expecting to happen? For a silhouette of a pokemon to show. #### What actually happened? The image is gone. #### How can we reproduce this issue? Play trivia with the whosthatpokemon list and have it show any tinypic url.
mikeshardmind commented 2019-10-02 18:25:08 +02:00 (Migrated from github.com)

If we have the originals for some of these trivia lists, we should try and have them uploaded on a long term host okay with hotlinks, such as imgur, on an account controlled by the organization, while keeping the originals for reupload if needed.

If we have the originals for some of these trivia lists, we should try and have them uploaded on a long term host okay with hotlinks, such as imgur, on an account controlled by the organization, while keeping the originals for reupload if needed.
aikaterna commented 2019-10-02 18:28:06 +02:00 (Migrated from github.com)

I have an archive of 151 gen 1 images I can convert to shadows/completely black and provide to whomever in the Red server if needed.

I have an archive of 151 gen 1 images I can convert to shadows/completely black and provide to whomever in the Red server if needed.
Jackenmen commented 2019-10-06 02:58:25 +02:00 (Migrated from github.com)

Maybe we could put them on GitHub (in separate org repo) and use cdn like jsdelivr.com/raw.githack.com/statically.io/etc to hotlink the images in trivias?

Maybe we could put them on GitHub (in separate org repo) and use cdn like jsdelivr.com/raw.githack.com/statically.io/etc to hotlink the images in trivias?
Kevin-Mok commented 2019-12-16 10:51:25 +01:00 (Migrated from github.com)

So, @Redjumpman has a Pokedex cog that has a CSV file containing all the Pokemon names along with URL's to their images. The problem is that the URL's contain the Pokemon names in the URL, so you can't directly use them in the YAML file for the question. I extracted the relevant information from the CSV in this text file (added .txt to end since GitHub doesn't allow attaching CSV files).

I was thinking if we could embed the image in the trivia question like @aikaterna does in their inspirobot cog, then that'd be great. But, that would require rehauling how the YAML file is parsed, which seems like it could be annoying. Does anyone have any thoughts on this?

So, @Redjumpman has a Pokedex cog that has a [CSV file](https://github.com/Redjumpman/Jumper-Plugins/blob/V3/pokedex/data/Pokemon.csv) containing all the Pokemon names along with URL's to their images. The problem is that the URL's contain the Pokemon names in the URL, so you can't directly use them in the YAML file for the question. I extracted the relevant information from the CSV in this [text file](https://github.com/Cog-Creators/Red-DiscordBot/files/3967278/pokemon-name-image.csv.txt) (added `.txt` to end since GitHub doesn't allow attaching CSV files). I was thinking if we could embed the image in the trivia question like @aikaterna does in their [inspirobot cog](https://github.com/aikaterna/aikaterna-cogs/blob/v3/inspirobot/inspirobot.py#L12-L24), then that'd be great. But, that would require rehauling how the YAML file is parsed, which seems like it could be annoying. Does anyone have any thoughts on this?
Drapersniper commented 2019-12-16 12:19:32 +01:00 (Migrated from github.com)

Aika is in the progress of updating the urls host afaik.

The trivia cog doesn’t have permissions to explicitly enforce embeds the only cog in core that has such permission is Audio due to its UX. even embedding these images provided does provide the users with the ability to cheat by checking the image url (if I understand what you’re saying I.e use RJM images)

Aika is in the progress of updating the urls host afaik. The trivia cog doesn’t have permissions to explicitly enforce embeds the only cog in core that has such permission is Audio due to its UX. even embedding these images provided does provide the users with the ability to cheat by checking the image url (if I understand what you’re saying I.e use RJM images)
Kevin-Mok commented 2019-12-16 12:44:39 +01:00 (Migrated from github.com)

Oh, okay. That's good. Also, I didn't realize you could check the image URL from the embed. 😅 I thought it uploaded it to Discord like how Pokecord does it which would obscure the name.

Oh, okay. That's good. Also, I didn't realize you could check the image URL from the embed. :sweat_smile: I thought it uploaded it to Discord like how Pokecord does it which would obscure the name.
Drapersniper commented 2019-12-16 13:01:11 +01:00 (Migrated from github.com)

Only way to get it to work without giving the answers is bundle the RJM images without names but that would require a restructure of how Trivia parses the question so that it can attach bundled images. but imo just rehosting the images like @mikeshardmind suggested would be the best option and require no rewrite.

Only way to get it to work without giving the answers is bundle the RJM images without names but that would require a restructure of how Trivia parses the question so that it can attach bundled images. but imo just rehosting the images like @mikeshardmind suggested would be the best option and require no rewrite.
Kevin-Mok commented 2019-12-17 11:33:44 +01:00 (Migrated from github.com)

I talked to @aikaterna about taking this over. My current plan is to write a script to:

  • download all the 1000 Pokemons from RJM's Pokedex CSV
  • convert them to a silhouette with a white background (or send them to aikaterna to do so)
  • upload them to Imgur while adding their direct image URL to my modified CSV
  • create YAML trivia file from CSV

We were also talking about splitting up the Pokemon trivia list into each generation since we're thinking that not everyone is interested in learning/guessing a lot of the newer generation Pokemon. I was initially thinking of creating a list for each generation, and people could specifically choose which generation category they want to play. However, aikaterna mentioned that this would be pretty cluttered, and I think I agree. So, should we group some of the generations together, or how do you guys think we should do it?

I talked to @aikaterna about taking this over. My current plan is to write a script to: - [ ] download all the 1000 Pokemons from [RJM's Pokedex CSV](https://github.com/Redjumpman/Jumper-Plugins/blob/V3/pokedex/data/Pokemon.csv) - [ ] convert them to a silhouette with a white background (or send them to aikaterna to do so) - [ ] upload them to Imgur while adding their direct image URL to [my modified CSV](https://github.com/Cog-Creators/Red-DiscordBot/files/3967278/pokemon-name-image.csv.txt) - [ ] create YAML trivia file from CSV We were also talking about splitting up the Pokemon trivia list into each generation since we're thinking that not everyone is interested in learning/guessing a lot of the newer generation Pokemon. I was initially thinking of creating a list for each generation, and people could specifically choose which generation category they want to play. However, aikaterna mentioned that this would be pretty cluttered, and I think I agree. So, should we group some of the generations together, or how do you guys think we should do it?
skylarr1227 commented 2019-12-18 04:52:02 +01:00 (Migrated from github.com)

Can I just say, that from our Pokemon bot and my work with mewbot.... I have all the images hosted, in both named and numbered format, separately, and even with dynamic hashed links to prevent easy recall of the number by bot or person. Just saying. IDK if it helps.

Can I just say, that from our Pokemon bot and my work with mewbot.... I have all the images hosted, in both named and numbered format, separately, and even with dynamic hashed links to prevent easy recall of the number by bot or person. Just saying. IDK if it helps.
skylarr1227 commented 2019-12-18 04:52:58 +01:00 (Migrated from github.com)

And I mean including generation 8 Pokemon.

And I mean including generation 8 Pokemon.
skylarr1227 commented 2019-12-21 23:16:21 +01:00 (Migrated from github.com)

If you do want/need this... Let me know

If you do want/need this... Let me know
Kevin-Mok commented 2019-12-22 08:26:43 +01:00 (Migrated from github.com)

@skylarr1227 That sounds like it would be a major help. Could you DM on Discord at PistolFist#9148?

@skylarr1227 That sounds like it would be a major help. Could you DM on Discord at PistolFist#9148?
skylarr1227 commented 2019-12-23 23:57:45 +01:00 (Migrated from github.com)

Absolutely

Absolutely
skylarr1227 commented 2019-12-24 14:02:08 +01:00 (Migrated from github.com)

I added you, Name is Sky .. just shoot me a message sometime

I added you, Name is Sky .. just shoot me a message sometime
Kevin-Mok commented 2019-12-28 18:09:03 +01:00 (Migrated from github.com)

I think I accidentally declined your request since I saw the request before seeing this response... 😅 In any case, I guess we should discuss the matter here for transparency anyway.

I realize that your current hosted images may not be as helpful as I initially thought since @aikaterna mentioned that the Pokemon pictures for the trivia should be silhouettes. As such, we would need the image files directly to convert them. Do you still happen to have the all image files locally?

I think I accidentally declined your request since I saw the request before seeing this response... :sweat_smile: In any case, I guess we should discuss the matter here for transparency anyway. I realize that your current hosted images may not be as helpful as I initially thought since @aikaterna mentioned that the Pokemon pictures for the trivia should be silhouettes. As such, we would need the image files directly to convert them. Do you still happen to have the all image files locally?
skylarr1227 commented 2020-01-02 14:50:25 +01:00 (Migrated from github.com)

yes, I do. Also, i showed that it was possible to show them in a way that
makes it nearly impossible to to cheat.

On Sat, Dec 28, 2019 at 12:09 PM Kevin Mok notifications@github.com wrote:

I think I accidentally declined your request since I saw the request
before seeing this response... 😅 In any case, I guess we should discuss
the matter here for transparency anyway.

I realize that your current hosted images may not be as helpful as I
initially thought since @aikaterna https://github.com/aikaterna
mentioned that the Pokemon pictures for the trivia should be silhouettes.
As such, we would need the image files directly to convert them. Do you
still happen to have the all image files locally?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Cog-Creators/Red-DiscordBot/issues/3023?email_source=notifications&email_token=AKSTMN5CXPS4VQCRWXITFW3Q26B27A5CNFSM4I4YRRF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYN3JI#issuecomment-569433509,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKSTMN74DP6DJIRGRAVIB73Q26B27ANCNFSM4I4YRRFQ
.

yes, I do. Also, i showed that it was possible to show them in a way that makes it nearly impossible to to cheat. On Sat, Dec 28, 2019 at 12:09 PM Kevin Mok <notifications@github.com> wrote: > I think I accidentally declined your request since I saw the request > before seeing this response... 😅 In any case, I guess we should discuss > the matter here for transparency anyway. > > I realize that your current hosted images may not be as helpful as I > initially thought since @aikaterna <https://github.com/aikaterna> > mentioned that the Pokemon pictures for the trivia should be silhouettes. > As such, we would need the image files directly to convert them. Do you > still happen to have the all image files locally? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/Cog-Creators/Red-DiscordBot/issues/3023?email_source=notifications&email_token=AKSTMN5CXPS4VQCRWXITFW3Q26B27A5CNFSM4I4YRRF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHYN3JI#issuecomment-569433509>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AKSTMN74DP6DJIRGRAVIB73Q26B27ANCNFSM4I4YRRFQ> > . >
aikaterna commented 2020-01-06 00:37:59 +01:00 (Migrated from github.com)

The images should be under control of the Cog Creators org and we shouldn't be relying on an outside hoster. I realize trusting them to imgur, which was my original intent, isn't exactly "under the control of" the org, but it's a business with expected uptime and deliverability so I would want the images hosted on that sort of site since the entire user base would be relying on that. Skylarr, if you want to provide the images to us we will make them suitable for the trivia as it existed before (white background, black shadow pokemon image).
As for multiple generations in one file, there may need to be some discussion about having pokemon trivia broken up by generation as people could play what gens they want, or all, at the same time: [p]trivia whosthatpokemon1 whosthatpokemon2 whosthatpokemon3, etc.

The images should be under control of the Cog Creators org and we shouldn't be relying on an outside hoster. I realize trusting them to imgur, which was my original intent, isn't exactly "under the control of" the org, but it's a business with expected uptime and deliverability so I would want the images hosted on that sort of site since the entire user base would be relying on that. Skylarr, if you want to provide the images to us we will make them suitable for the trivia as it existed before (white background, black shadow pokemon image). As for multiple generations in one file, there may need to be some discussion about having pokemon trivia broken up by generation as people could play what gens they want, or all, at the same time: `[p]trivia whosthatpokemon1 whosthatpokemon2 whosthatpokemon3`, etc.
aikaterna commented 2020-05-19 01:28:39 +02:00 (Migrated from github.com)

Since this discussion has become stale, I am intending to move forward with replacing the original 1-151 images on our existing trivia file for this item and further generations/trivia files can be discussed in another issue or in a PR.

Since this discussion has become stale, I am intending to move forward with replacing the original 1-151 images on our existing trivia file for this item and further generations/trivia files can be discussed in another issue or in a PR.
Pyroptical commented 2020-05-31 20:06:45 +02:00 (Migrated from github.com)

remade from scratch with updated image urls added up to gen 4 and made the images into the format of the original show
whosthatpokemon.txt

remade from scratch with updated image urls added up to gen 4 and made the images into the format of the original show [whosthatpokemon.txt](https://github.com/Cog-Creators/Red-DiscordBot/files/4708129/whosthatpokemon.txt)
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#3023
No description provided.