Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ project--
- karma tracks case-insensitive thing++ and thing-- changes.
- thing++ and thing-- also work as standalone ordinary chat messages. GoBot
confirms each update in one compact line, such as
`Karma boost! thing +1 (total +2)`; command messages are not treated as
`🆙 Karma boost! thing +1 (total +2)`; command messages are not treated as
karma changes.
- Positive karma milestones at +10, +25, +50, and +100 add a highlighted
trophy notice when the total crosses the threshold.
Expand Down
2 changes: 1 addition & 1 deletion plugins/karma.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func formatKarmaUpdates(updates []karmaUpdate) string {
}
message := ""
if positive {
message = ircColor(ircGreen, "Karma boost! "+strings.Join(details, ", ")+" ✨ 🎯 🌟 💫")
message = ircColor(ircGreen, "🆙 Karma boost! "+strings.Join(details, ", ")+" ✨ 🎯 🌟 💫")
} else if negative {
message = ircColor(ircRed, "Karma dip! "+strings.Join(details, ", ")+" 📉 🌀 💥 😬")
} else {
Expand Down
2 changes: 1 addition & 1 deletion plugins/karma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestKarmaRegex(t *testing.T) {

func TestKarmaUpdateMessageIsColorfulAndCompact(t *testing.T) {
message := formatKarmaUpdates([]karmaUpdate{{key: "echo", delta: 1, value: 4}})
if !strings.Contains(message, "Karma boost! echo") {
if !strings.Contains(message, "🆙 Karma boost! echo") {
t.Fatalf("unexpected karma message: %q", message)
}
if !strings.Contains(message, "✨ 🎯 🌟 💫") {
Expand Down