A fork of Pleroma ActivityRelay that is used by SEDI with localization. https://git.pleroma.social/pleroma/relay
Go to file
2018-08-18 10:46:19 -05:00
viera actor: don't relay non-public messages 2018-08-18 00:07:49 -05:00
.gitignore add database and config to gitignore 2018-08-10 15:00:00 -05:00
LICENSE Initial commit 2018-08-10 18:36:17 +00:00
Pipfile add the rest of the stuff 2018-08-10 20:36:24 -05:00
Pipfile.lock add the rest of the stuff 2018-08-10 20:36:24 -05:00
README.md expand README 2018-08-18 00:05:48 -05:00
requirements.txt add requirements.txt file 2018-08-18 10:46:19 -05:00
viera.yaml.example add example config 2018-08-18 00:14:01 -05:00

viera

A useful IRC and ActivityPub bot which links identities and relays messages.

Copyleft

viera is copyrighted, but free software, licensed under the terms of the GNU Affero General Public License version 3 (AGPLv3) license. You can find a copy of it in this package as the LICENSE file.

Setup

viera uses the new pipenv python environment manager, you should install it before trying to make use of this software:

$ pip3 install pipenv

Next, create the virtual environment for viera to use:

$ pipenv install

Next, copy viera.yaml.example to viera.yaml and edit it as appropriate:

$ cp viera.yaml.example viera.yaml
$ $EDITOR viera.yaml

Finally, you can launch viera:

$ pipenv run python3 -m viera

It is suggested to run this under some sort of supervisor, such as runit, daemontools, s6 or systemd. Configuration of the supervisor is not covered here, as it is different depending on which system you have available.

The bot runs a webserver, internally, on localhost at port 8080. This needs to be forwarded by nginx or similar. The webserver is used to receive ActivityPub messages, and needs to be secured with an SSL certificate inside nginx or similar. Configuration of your webserver is not discussed here, but any guide explaining how to configure a modern non-PHP web application should cover it.

Getting started

It is required to register a services account for the bot. This is different depending on the IRC network in use.

It is also required to use SASL to authenticate to the IRC network. This is supported on most IRC networks.

viera works with ActivityPub identities as the primary source of trust. This means that you are required to link an ActivityPub identity to your IRC identity in order to authenticate to the bot. To do that, make sure you are logged into your NickServ or similar account and message the bot on IRC:

/msg yourbot auth

The bot will respond with an authentication token that you must supply via the fediverse, in most cases you can just copy and paste the exact message it provides.

Following accounts to relay to IRC

Once you have authenticated to an AP identity which is listed in the privileged group in the config file, you may configure the bot to follow accounts, by using the follow command:

/msg yourbot follow https://pleroma.site/users/kaniini

This will cause your bot to request an ActivityPub connection between itself and the user you followed. In most cases this will be set up immediately, but in some cases, there may be a delay, such as when accounts are restricted.

If you want the bot to stop following an account, you can use the unfollow command:

/msg yourbot unfollow https://pleroma.site/users/kaniini