Skip to content

Add %SERVER% formatter#28

Open
unique-nullptr wants to merge 2 commits into
CivMC:masterfrom
unique-nullptr:master
Open

Add %SERVER% formatter#28
unique-nullptr wants to merge 2 commits into
CivMC:masterfrom
unique-nullptr:master

Conversation

@unique-nullptr
Copy link
Copy Markdown

Add %SERVER% formatter, so that events (skynet, snitch, chat, etc) can reliably be associated to the specific server which generated them.

This option is useful for allowing bots or users to identify which server a message came from, and so.

Without this option, it is impossible to reliably know which server a specific message originates from, without configuring the bot in some specific way (i.e: hard-coding a server identifier in the format string itself, OR keeping mini and main traffic to strictly separate channels and configuring/noting which is which manually). This is because multiple servers can theoretically have the same namelayer name, relayed to the same channel. This resolves that in an easy-to-use way.

Copy link
Copy Markdown

@okx-code okx-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

server is not part of the json payload for the various events

@unique-nullptr unique-nullptr requested a review from okx-code May 21, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants