Matrix

IRC Bridge How To

Basic steps:

git clone https://github.com/matrix-org/matrix-appservice-irc.git
cd matrix-appservice-irc
npm install
npm test

Example config.yaml:

config.yaml
homeserver:
  url: "http://localhost:8008"
  domain: "glasgow.social"
  
ircService:
  servers:
    irc.glasgow.social:
      name: "Glasgow Social"
      port: 6697
      ssl: true
      
       mappings:
         "#glasgow":
           roomIds: ["!roomid:glasgow.social"]

Create registration file for homeserver:

node app.js -r -f irc_registration.yaml -u "http://glasgow.social:9999" -c config.yaml -l my_bot

Add a reference to the registration file in the homeserver.yaml config file:

app_service_config_files:
- /home/ubuntu/matrix/matrix-appservice-irc/irc_registration.yaml

Restart the homeserver:

sudo service matrix-synapse restart

Start the IRC bridge:

node app.js -c config.yaml -f irc_registration.yaml -p 9999