Skip to content

Link to deck builder from responses #7

@Kryptortio

Description

@Kryptortio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions