The current CounterPlugin.
The custom string pattern we're formatting.
The IRCEvent that triggered the format.
The Counter that the message relates to.
By what step the counter was modified, if any.
A new string, with keywords replaced.
immutable pattern = "The $word count was bumped by +$step to $count!"; immutable message = formatMessage(plugin, pattern, event, counter, step); assert(message == "The curse count was bumped by +1 to 92!");
Formats a message by a string pattern, replacing select keywords with more helpful values.