2024-10-22 19:36:24 +02:00
# Setting up Appservice IRC bridging (optional)
2019-01-31 06:37:23 +01:00
2021-05-19 12:32:05 +02:00
**Note**: bridging to [IRC ](https://en.wikipedia.org/wiki/Internet_Relay_Chat ) can also happen via the [Heisenbridge ](configuring-playbook-bridge-heisenbridge.md ) bridge supported by the playbook.
The playbook can install and configure the [matrix-appservice-irc ](https://github.com/matrix-org/matrix-appservice-irc ) bridge for you.
2019-01-31 06:37:23 +01:00
2020-02-08 11:02:03 +01:00
See the project's [documentation ](https://github.com/matrix-org/matrix-appservice-irc/blob/master/HOWTO.md ) to learn what it does and why it might be useful to you.
2019-01-31 06:37:23 +01:00
2024-10-12 13:48:24 +02:00
## Adjusting the playbook configuration
2024-10-17 15:17:56 +02:00
To enable the bridge, add the following configuration to your `inventory/host_vars/matrix.example.com/vars.yml` file:
2019-01-31 06:37:23 +01:00
```yaml
2019-01-31 16:58:45 +01:00
matrix_appservice_irc_enabled: true
2019-06-19 11:28:58 +02:00
matrix_appservice_irc_ircService_servers:
irc.example.com:
name: "ExampleNet"
port: 6697
ssl: true
sasl: false
allowExpiredCerts: false
sendConnectionMessages: true
botConfig:
enabled: true
nick: "MatrixBot"
joinChannelsIfNoUsers: true
privateMessages:
enabled: true
federate: true
dynamicChannels:
enabled: true
createAlias: true
published: true
joinRule: public
groupId: +myircnetwork:localhost
federate: true
aliasTemplate: "#irc_$CHANNEL"
membershipLists:
enabled: false
floodDelayMs: 10000
global:
ircToMatrix:
initial: false
incremental: false
matrixToIrc:
initial: false
incremental: false
matrixClients:
userTemplate: "@irc_$NICK"
displayName: "$NICK (IRC)"
joinAttempts: -1
ircClients:
nickTemplate: "$DISPLAY[m]"
allowNickChanges: true
maxClients: 30
idleTimeout: 10800
reconnectIntervalMs: 5000
concurrentReconnectLimit: 50
lineLimit: 3
2019-01-31 06:37:23 +01:00
```
2024-10-12 20:03:46 +02:00
## Installing
After configuring the playbook, run the [installation ](installing.md ) command: `just install-all` or `just setup-all`
## Usage
2024-10-17 15:23:06 +02:00
You then need to start a chat with `@irc_bot:example.com` (where `example.com` is your base domain, not the `matrix.` domain).