You can use this project to bridge a Slack room with an existing IRC channel.
When Slack users type a message, this script will sign in to IRC for them, join the channel, and then relays their messages to IRC on behalf of them.
message.channels
eventchannels:history
channels:read
files:read
files:write
groups:read
users:read
message.channels
in the previous step)slack.token
. This is used to do things like look up info about Slack users.slack.hook
in the config file.Now run node gateway.js
which listens on the configured HTTP port and will start connecting to IRC on behalf of your Slack users!
Messages from IRC will also be sent back to the corresponding channel.
Slack supports rich text in messages such as including links. If you have any custom text replacements you'd like to do for messages sent from IRC to Slack, such as autolinking keywords, you can add a file replacements.js
and define a function there to transform text sent from IRC to Slack. See replacements.example.js
for an example.
Slack uses emoji shortcodes in the API rather than emoji themselves. When new emoji or shortcodes are added, the emoji_pretty.json
file will need to be updated. This gateway uses a copy of the file that is used by Slack, available at
https://github.com/iamcal/emoji-data
https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji_pretty.json
See LICENSE.txt