Skip to content
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

Link to deck builder from responses #7

Open
Kryptortio opened this issue Sep 11, 2024 · 0 comments
Open

Link to deck builder from responses #7

Kryptortio opened this issue Sep 11, 2024 · 0 comments

Comments

@Kryptortio
Copy link

I think it would be nice if a link was added to the official deck builder for the deck code. I believe to do this you would change the line

reply_chunks.append(f"**Deck Code:** {deck.as_deckstring}")

to

reply_chunks.append(f"**Deck Code:** [{deck.as_deckstring}](https://hearthstone.blizzard.com/en-us/deckbuilder?deckcode={deck.as_deckstring})")

That should change it from

Total Dust: 12520

Deck Code: AAECAYvlBgjt/wX/lwbHpAakwAaowAbIyQaWywa6zgYL9eMEhY4GlJUGkqAGubEGu7EG/7oGv74Gx8kG/8kGlM8GAAED9bMGx6QG97MGx6QG6N4Gx6QGAAA=

To

Total Dust: 12520

Deck Code: AAECAYvlBgjt/wX/lwbHpAakwAaowAbIyQaWywa6zgYL9eMEhY4GlJUGkqAGubEGu7EG/7oGv74Gx8kG/8kGlM8GAAED9bMGx6QG97MGx6QG6N4Gx6QGAAA=

So you can easily edit the deck or get an overview with mouseover if you prefer that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant