seabird-proxy-plugin
Dependencies
seabird-core
Configuration
Environment Variables
Common settings:
SEABIRD_HOST(required) - this is the URL of theseabird-coreinstance. Most users should usehttps://core.seabird.chatSEABIRD_TOKEN(required) - the seabird token
Proxy-specific settings
PROXY_CONFIG_FILE(required) - path to the config file for the pluginRUST_LOG(optional, defaults toinfo,seabird-proxy-plugin=debug) - this is a common rust environment variable documented here because we set a default. All seabird functionality is exposed under theseabirdlogger.
Config File
The config file is a list of proxied channels, each containing the following structure:
source(required) - the Seabird Channel ID messages should be copied fromtarget(required) - the Seabird Channel ID messages should be copied touser_prefix- a raw string to insert before the username in proxied messagesuser_suffix- a raw string to insert between the username and text in proxied messages
Note that we use source and target rather than linked_channels or
something similar. This is to allow configuring the user_prefix and
user_suffix on a per-target-channel basis.
A few helpful user_prefix/user_suffix combinations:
# Discord target
user_prefix: "**"
user_suffix: " (Source Name)**"
# IRC target
user_prefix: "\u0002"
user_suffix: "[source name]\u000f"
# Minecraft target
user_prefix: ""
user_suffix: " (Source Name)"
Runtime Config Updates
In order to force the config to reload, send a SIGHUP to the
seabird-proxy-plugin process.