Skip to content

Commit

Permalink
feat: adding pactusscan transaction link
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Dec 21, 2023
1 parent 5fdad8a commit 48d2286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (b *Bot) messageHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
log.Printf("error saving faucet information: %v\n", err)
}

msg := p.Sprintf("%v %.4f tPAC's is staked to %v successfully🪙!\n with %v as referral.\nYour transaction hash: ```%v```",
msg := p.Sprintf("%v %.4f tPAC's is staked to %v successfully🪙!\n with %v as referral.\nYour transaction:\nhttps://pacscan.org/transactions/%v/",
m.Author.Username, amount, address, referral.DiscordName, txHashFaucet)
_, _ = s.ChannelMessageSendReply(m.ChannelID, msg, m.Reference())
return
Expand Down Expand Up @@ -309,7 +309,7 @@ func (b *Bot) messageHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
if err != nil {
log.Printf("error saving faucet information: %v\n", err)
}
msg := p.Sprintf("%v %.4f tPAC's is staked to %v successfully🪙!\nYour transaction hash: ```%v```",
msg := p.Sprintf("%v %.4f tPAC's is staked to %v successfully🪙!\nYour transaction:\nhttps://pacscan.org/transactions/%v/",
m.Author.Username, b.cfg.FaucetAmount, trimmedAddress, txHash)
_, _ = s.ChannelMessageSendReply(m.ChannelID, msg, m.Reference())

Expand Down

0 comments on commit 48d2286

Please sign in to comment.