removed debug line
[rrq/slirc.git] / notes.md
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
4 well.
5
6 Here’s what I did:
7
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
11 a note of it.
12
13 Install the prerequisites for slirc, and download it:
14
15 sudo cpan AnyEvent AnyEvent::HTTP AnyEvent::Socket AnyEvent::WebSocket::Client URI::Encode Data::Dumper JSON
16 mkdir slirc
17 cd slirc
18 wget -q 'https://www.dlbeer.co.nz/articles/slirc/slirc-20180515.pl'
19 chmod +x slirc-20180515.pl
20
21 Create a file in the slirc directory you created above, called
22 rc.conf, and make it look like this:
23
24 slack_token=abcd-123456768-ETC-ETC
25 password=somepassword
26 port=6667
27
28 Replace “abcd-123456768-ETC-ETC” with the Slack legacy token you noted
29 down earlier.
30
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
33 client.
34
35 Run slirc and leave it running:
36
37 ./slirc-20180515.pl rc.conf
38 (Make sure you are inside the slirc dir when you run that.)
39
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”).
43
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
46 list.