Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Jan 7, 2024
1 parent e06302d commit ce32dbb
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 @@ -172,7 +172,7 @@ func (b *Bot) messageHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
score = fmt.Sprintf("%v🟢✅", val.Validator.AvailabilityScore)
}

msg := p.Sprintf("Peer info\n")
msg := p.Sprintf("--------------------Peer Info--------------------\n")
msg += p.Sprintf("Peer ID: %v\n", peerID)
msg += p.Sprintf("IP address: %v\n", peerInfo.Address)
msg += p.Sprintf("Agent: %v\n", peerInfo.Agent)
Expand All @@ -185,7 +185,7 @@ func (b *Bot) messageHandler(s *discordgo.Session, m *discordgo.MessageCreate) {
msg += p.Sprintf("--------------------Validator Info----------------\n")
msg += p.Sprintf("Number: %v\n", val.Validator.Number)
msg += p.Sprintf("**Availability score: %v\n**", score)
msg += p.Sprintf("**Stake amount: %v tPAC's\n**", util.ChangeToCoin(val.Validator.Stake))
msg += p.Sprintf("Stake amount: %v tPAC's\n", util.ChangeToCoin(val.Validator.Stake))
msg += p.Sprintf("Last bonding height: %v\n", val.Validator.LastBondingHeight)
msg += p.Sprintf("Last sortition height: %v\n", val.Validator.LastSortitionHeight)
_, _ = s.ChannelMessageSendReply(m.ChannelID, msg, m.Reference())
Expand Down

0 comments on commit ce32dbb

Please sign in to comment.