n8n-nodes-irc
v0.1.2
Published
Send messages to IRC with n8n
Downloads
5
Maintainers
Keywords
Readme
n8n-nodes-irc
This is an n8n community node. It lets you send messages to IRC in your n8n workflows.
IRC (Internet Relay Chat) is a chat platform, over 20 years old.
n8n is a fair-code licensed workflow automation platform.
Installation
Follow the installation guide in the n8n community nodes documentation.
Usage
Create a channel on an IRC network, for example Libera.chat or OFTC. You could also setup your own IRC server.
You may also want to register an account for the n8n integration. You should check the account registration documentation for the network you're using with the /ns help register
command.
If you're new to n8n, check out the documentation to get started.
Credentials
The IRC credential controls the IRC network, nickname, and account being used.
Here are the basics:
- Enter the hostname of the IRC server in the Host field.
- If the network either uses self-signed TLS certificates, does not support TLS, or uses a custom port (not 6697), check out the Using Custom Connection Details section below.
- Enter your desired nickname in the Nickname field.
- If you want the bot to login to an account, check out the Logging into an Account section below.
- Click on the Save button to save your credentials.
Using Custom Connection Details
The default port/TLS credentials should configure a safe, secure network setup. These settings will be correct for the majority of publicly-available networks out there.
However, if you're running your own network or one that doesn't conform to standard IRC configurations, you may need to change these settings.
Most servers use port 6697 for TLS IRC and 6667 for plaintext IRC. Here's how to change these for your network:
- Confirm the Use TLS field is correctly set.
- Enter the port number to use in the Port field.
Disabling TLS
If you want to disable TLS (use plaintext) then disable the Use TLS field near the bottom of the node.
Allowing Self-Signed TLS Certificates
Some servers support TLS, but don't provide signed certificates. If you want to connect to these servers, you'll need to disable the Force TLS Certificate Validation field.
Using a Random Nickname
When you have a lot of IRC nodes running at once, their nicknames can conflict. By default the node will add underscores to try and find an unused nickname. This isn't perfect, but should work fine in most cases.
You can use this expression in the Nickname field to automatically select a random nickname each time the node runs (you can click on Add Expression and paste this):
n8n-{{Math.floor(Math.random()*1000).toString().padStart(4,'0')}}
Logging into an Account
Most IRC networks let you use SASL to login to your account. For example, the Libera.Chat SASL configuration page is here.
To configure SASL, you can do the following.
- Change the Account Login field to SASL PLAIN.
- Enter your account name in the Account Name field.
- Enter your account password in the Account Password field.
- Confirm the Only connect if SASL is successful field is correctly set. When set, the IRC node will fail if it can't login to your account.
Compatibility
...
Resources
Version history
...