Skip to content

Commit

Permalink
fix: edit validator labels for Telegram and Discord (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitystake authored Dec 5, 2023
1 parent 0e559bf commit b2b5f14
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions pkg/templates/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,31 +133,31 @@ func (m *DiscordTemplateManager) SerializeEvent(event types.RenderEventItem) str
)
case events.ValidatorJailed:
return fmt.Sprintf(
"**❌ %s was jailed**%s",
"**❌ %s has been jailed**%s",
validatorLink,
notifiersSerialized,
)
case events.ValidatorUnjailed:
return fmt.Sprintf(
"**👌 %s was unjailed**%s",
"**👌 %s has been unjailed**%s",
validatorLink,
notifiersSerialized,
)
case events.ValidatorInactive:
return fmt.Sprintf(
"😔 **%s is now not in the active set**%s",
"😔 **%s has left the active set**%s",
validatorLink,
notifiersSerialized,
)
case events.ValidatorActive:
return fmt.Sprintf(
"✅ **%s is now in the active set**%s",
"✅ **%s has joined the active set**%s",
validatorLink,
notifiersSerialized,
)
case events.ValidatorTombstoned:
return fmt.Sprintf(
"**💀 %s was tombstoned**%s",
"**💀 %s has been tombstoned**%s",
validatorLink,
notifiersSerialized,
)
Expand Down
10 changes: 5 additions & 5 deletions pkg/templates/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,31 +126,31 @@ func (m *TelegramTemplateManager) SerializeEvent(event types.RenderEventItem) st
)
case events.ValidatorJailed:
return fmt.Sprintf(
"<strong>❌ %s was jailed</strong>%s",
"<strong>❌ %s has been jailed</strong>%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorUnjailed:
return fmt.Sprintf(
"<strong>👌 %s was unjailed</strong>%s",
"<strong>👌 %s has been unjailed</strong>%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorInactive:
return fmt.Sprintf(
"😔 <strong>%s is now not in the active set</strong>%s",
"😔 <strong>%s has left the active set</strong>%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorActive:
return fmt.Sprintf(
"✅ <strong>%s is now in the active set</strong>%s",
"✅ <strong>%s has joined the active set</strong>%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorTombstoned:
return fmt.Sprintf(
"<strong>💀 %s was tombstoned</strong>%s",
"<strong>💀 %s has been tombstoned</strong>%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
Expand Down

0 comments on commit b2b5f14

Please sign in to comment.