blob: 337f3c913d9357ec1c10bbce6c3fb58ec0c06e83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Weechat
## Tags
* type: documentation
* keywords: cli, weechat, documentation
Weechat is a very versatile terminal chat that can handle IRC, Matrix and Slack.
## Weechat install + slack
Arun has packaged weechat for slack and matrix in GNU Guix. Current install using a guix environment:
```
env GUIX_PACKAGE_PATH=~/guix-bioinformatics/ ~/opt/guix-latest/bin/guix environment --ad-hoc coreutils weechat weechat-matrix weechat-wee-slack nss-certs openssl python
echo $GUIX_ENVIRONMENT
/gnu/store/i4a3ynfjvq8r8cch14gkn2fwfs77wagj-profile/
weechat
/python load /gnu/store/i4a3ynfjvq8r8cch14gkn2fwfs77wagj-profile/share/weechat/python/wee_slack.py
/slack register
```
So, capture the shell GUIX_ENVIRONMENT and use that to launch the wee-slack plugin. Next register a token through te Slack web interface.
If you go through the motions you get a token and
```
/slack register 2654233192084.2682932906197.fd6d6e55c0038f-etc-052b4fa578ec497710b4b8770f1-etc
/python reload slack
```
More instructions for https://github.com/wee-slack/wee-slack.
## Weechat IRC
We have a GeneNetwork channel
```
/set irc.server_default.nicks pjotrp
/server add libera irc.libera.chat/6697 -ssl -autoconnect
/connect libera
/join #guix
/join #guix-risc-v
/join #guix-hpc
/join #genenetwork
```
## Weechat matrix
The matrix plugin works similar to above Slack plugin.
```
/script load matrix.py
/matrix server add fosdem chat.fosdem.org
/set matrix.server.matrix_org.username pjotrp-linux
/set matrix.server.matrix_org.password ****
/set matrix.server.matrix_org.autoconnect on
/save
```
Only the matrix version is not so polished. For example, it is hard to find the buffers because they are named by a hash. In a buffer you can rename with
```
/buffer set short_name myname
```
Also, you need to enable every channel explicitly to exchange keys
```
/olm verify @user:matrix.org *
```
|