1 I tried to get back to an IRC interface to Slack using Matrix, and it
2 had some problems. Thanks to Colin Watson’s comment on that post, I
3 tried Daniel Beer’s slirc, and so far it seems to be working pretty
8 Get a Slack legacy token which slirc will use to connect to Slack as
9 you. Follow the instructions given at that link, and you should end up
10 with a token that looks something like “abcd-123456768-ETC-ETC”. Keep
13 Install the prerequisites for slirc, and download it:
15 sudo cpan AnyEvent AnyEvent::HTTP AnyEvent::Socket AnyEvent::WebSocket::Client URI::Encode Data::Dumper JSON
18 wget -q 'https://www.dlbeer.co.nz/articles/slirc/slirc-20180515.pl'
19 chmod +x slirc-20180515.pl
21 Create a file in the slirc directory you created above, called
22 rc.conf, and make it look like this:
24 slack_token=abcd-123456768-ETC-ETC
28 Replace “abcd-123456768-ETC-ETC” with the Slack legacy token you noted
31 Replace “somepassword” with something you’ve made up (not your Slack
32 password) – this is what you will type as the password in your IRC
35 Run slirc and leave it running:
37 ./slirc-20180515.pl rc.conf
38 (Make sure you are inside the slirc dir when you run that.)
40 Start your IRC client (e.g. HexChat) and add a server with address
41 “localhost” and port 6667, with your slack username and the password
42 you added in the rc.conf (which you wrote instead of “somepassword”).
44 This mostly works for me, except it has a tendency to open a load of
45 ad-hoc chats as channels, so I have to close them all to get a usable