- A Slack workspace
- autodl-irssi set up in ruTorrent
- Docker (sort of optional)
-
Create a Slack channel in your workspace, e.g. #autodl-irssi
-
Pick an IRC server to create a channel in. I will use
yolo.hackint.org
(on port6697
with SSL enabled) in this example. -
Create an IRC channel with
/join #username-autodl
from a connected IRC client. The channel name should be unique and specific to you somehow (e.g.#igglybuff-autodl
). -
Get your bot user OAuth access token.
i. Head to https://api.slack.com/apps
ii. Click on your app
iii. Under "Features", click "Oauth & Permissions"
iv. Copy the text under "Bot User OAuth Access Token"
-
Create a file called
config.json
somewhere on your server that looks like this:
[
{
"nickname": "uniqueautodlbotname",
"server": "yolo.hackint.org",
"token": "<bot oauth2 token>",
"channelMapping": {
"#my-slack-channel": "#my-irc-channel"
},
"ircOptions": {
"floodProtection": false,
"floodProtectionDelay": 1000,
"debug": true,
"port": 6697,
"secure": true,
"selfSigned": true,
"nick": "uniqueautodlbotname"
}
}
]
- Change the channels + nickname and add your OAuth2 token to match what you set up earlier.
- Run
docker run -d --name=slack-irc --restart=always -v /path/to/config-dir:/config benramsey/slack-irc:latest
replacing/path/to/config-dir
with the path to the directory storing yourconfig.json
file on your server. (benramsey/slack-irc is based on Martin Ek's slack-irc bridge) - Watch the logs with
docker logs -f slack-irc
in case there are any errors due to misconfiguration. - Test bidirectional communication by sending test messages in both the IRC channel and the Slack channel.
- Go to ruTorrent and in your autodl-irssi "IRC Servers..." menu add the IRC server then click OK.
- In your autodl-irssi "Preferences..." menu, click the "IRC" tab and tick the box next to "Auto connect to IRC servers and channels" and enter the IRC server name next to "Server" and the channel next to "Channel" then click OK.
- In the "autodl-irssi" tab in ruTorrent, click "Version" to test the configuration.
autodl-irssi should join the IRC channel with the nick you configured in ruTorrent and any messages should be send to both Slack and IRC.