DOKK / manpages / debian 11 / localslackirc / localslackirc.1.en
localslackirc(1) General Commands Manual localslackirc(1)

localslackirc - Creates an IRC server running locally, which acts as a gateway to slack for one user.

localslackirc [OPTIONS]

This command starts an IRC server running on 127.0.0.1:9007 which acts as a gateway to slack for one user.
To connect to multiple instances it is necessary to run multiple instances of this software.

Show the help message and exit.
Set the port number. The default is 9007.
Set the IP (Ipv4 only) address to listen to. The default is 127.0.0.1.
Set the token file. The default is ~/.localslackirc.
Set the cookie file. This is only used on slack, and is only useful if your token starts with "xoxc".
Don't display userlist in the IRC client.
Automatically join all remote channels.
Allow listening on addresses that do not start with 127.*
This is potentially dangerous.
Path to the file keeping the status. When this is set, it allows for the history to be loaded on start.
Instead of using localslackirc as ident for syslog, this appends a custom string, separated by a -.
This is useful when running several instances, to be able to distinguish the logs.
The default .service file uses this. Of course journald keeps track of the services but this makes it easier to have the information on text dumps or other logging daemons such as rsyslog.
Comma separated list of channels to ignore and not automatically join on IRC.
It is ignored unless autojoin is set.
If a channel is in this list, the IRC client will not automatically join it, but on slack you will still be inside the channel
This is useful to avoid off topic channels in which coworkers who can't take a hint keep re-inviting.
The ignored channels can be joined again if needed, with a /join #channel command. However the conversation history will not be fetched.
For channel names containing non ascii characters, their ascii representation needs to be used. Use /list to see which that is.

The access token is (unless specified otherwise) located in ~/.localslackirc, for information on how to obtain your token, check the README file.

The following environment variables are used. They override command line settings. The alternatives to switches must contain "true" to work.

Alternative to --cookiefile
Alternative to --port
Alternative to --tokenfile
If running as root, this is the name of the user to switch to. If this is not specified, "nobody" will be used.
This is very useful to start localslackirc as a service and configure which user to use in the configuration file.
Alternative to --ip
Alternative to --override
Alternative to --rc-url
Path to the status file
Alternative to --autojoin
Alternative to --nouserlist
Alternative to --log-suffix
Alternative to --ignored-channels

https://github.com/ltworf/localslackirc

Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
October 14, 2020 IRC gateway for slack