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

using embeds for transactions #5

Open
TOGM opened this issue Jul 19, 2018 · 1 comment
Open

using embeds for transactions #5

TOGM opened this issue Jul 19, 2018 · 1 comment
Labels
enhancement New feature or request

Comments

@TOGM
Copy link

TOGM commented Jul 19, 2018

this would allow you to create custom links in your messages so that tx hash could go to a certain site.

pseudo code for
TOGM#0250: Purchased 5 tickets for 25.00000000 MSR with TX Hash: 4a9716702b7ec087db96d5a1b98ded543fcfc854efd74a42819da75a45c03336 😃
(in python):

hyperlink = "https://msrchain.net/search?value="
txhash = "4a9716702b7ec087db96d5a1b98ded543fcfc854efd74a42819da75a45c03336"
discordAuthor = "TOGM#0250"
tickets = "5"
ticketAmt = "25.00000000"
coinCode = "MSR"

embed=discord.Embed(title="Tickets Purchased", color=0xffd700)
embed.add_field(name="", value=discordAuthor+": Purchased "+ tickets +" tickets for "+ticketAmt+" "+coinCode+" with the TX Hash: "+"["+txhash+"]("+hyperlink+txhash+") :smiley:", inline=True)
return embed
@TylerTheFox TylerTheFox added the enhancement New feature or request label Jul 20, 2018
@TylerTheFox
Copy link
Owner

TylerTheFox commented Jul 20, 2018

That might be too complicated to do with sleepy discord. I'll look into it but what you can do is edit the language.json file and add that url to all the strings with txhash.

The most it could do in its current state to use the markdown system. https://support.discordapp.com/hc/en-us/articles/210298617-Markdown-Text-101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants