- Escape angle brackets around IRC username so Owncast doesn't swallow them as HTML tags (<nick> instead of <nick>) - Register a chat user via POST /api/chat/register to obtain an accessToken, then pass it as a query param when connecting to /ws (Owncast closes the WebSocket immediately without one) - Cache the access token across reconnections; re-register only on rejection - Add ws_display_name config option (default "IRC Bridge") - Fix echo suppression: record_sent and is_echo now both compare raw body instead of mismatched formatted/raw values Made-with: Cursor
23 lines
453 B
TOML
23 lines
453 B
TOML
[irc]
|
|
server = "irc.zeronode.net"
|
|
port = 6667
|
|
tls = false
|
|
nick = "owncast-bridge"
|
|
channel = "#BowlAfterBowl"
|
|
|
|
[owncast]
|
|
url = "https://owncast.bowlafterbowl.com"
|
|
# Set OWNCAST_ACCESS_TOKEN env var for the token
|
|
webhook_port = 9078
|
|
websocket_enabled = true
|
|
health_poll_interval_secs = 30
|
|
ws_display_name = "IRC Bridge"
|
|
|
|
[bridge]
|
|
irc_prefix = "[IRC]"
|
|
owncast_prefix = "[OC]"
|
|
message_buffer_size = 0
|
|
|
|
[control]
|
|
socket_path = "/tmp/owncast-irc-bridge.sock"
|