From b2b5f1451952aa431c365323d0e566c6d4d4d746 Mon Sep 17 00:00:00 2001
From: Trinity Validator <114076168+trinityprivacy@users.noreply.github.com>
Date: Tue, 5 Dec 2023 20:09:39 +1100
Subject: [PATCH] fix: edit validator labels for Telegram and Discord (#32)
---
pkg/templates/discord.go | 10 +++++-----
pkg/templates/telegram.go | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/pkg/templates/discord.go b/pkg/templates/discord.go
index 5b0cfa3..c8ae3a5 100644
--- a/pkg/templates/discord.go
+++ b/pkg/templates/discord.go
@@ -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,
)
diff --git a/pkg/templates/telegram.go b/pkg/templates/telegram.go
index 733a038..c882251 100644
--- a/pkg/templates/telegram.go
+++ b/pkg/templates/telegram.go
@@ -126,31 +126,31 @@ func (m *TelegramTemplateManager) SerializeEvent(event types.RenderEventItem) st
)
case events.ValidatorJailed:
return fmt.Sprintf(
- "❌ %s was jailed%s",
+ "❌ %s has been jailed%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorUnjailed:
return fmt.Sprintf(
- "👌 %s was unjailed%s",
+ "👌 %s has been unjailed%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorInactive:
return fmt.Sprintf(
- "😔 %s is now not in the active set%s",
+ "😔 %s has left the active set%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorActive:
return fmt.Sprintf(
- "✅ %s is now in the active set%s",
+ "✅ %s has joined the active set%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)
case events.ValidatorTombstoned:
return fmt.Sprintf(
- "💀 %s was tombstoned%s",
+ "💀 %s has been tombstoned%s",
m.SerializeLink(event.ValidatorLink),
notifiersSerialized,
)