1
0
Fork 0
Mastodon to [anything] reposter. Anything being {Telegram, Discord} for now.
Go to file
Casey 3644ebad82
[WIP] Added documentation
2022-09-23 18:44:45 +03:00
mastoposter Added property that removes emojis from the name 2022-09-23 18:31:16 +03:00
.gitignore Pleroma: fallback value in account.discoverable 2022-08-30 13:25:05 +03:00
Dockerfile I should sleep more 2022-09-22 19:16:52 +03:00
README [WIP] Added documentation 2022-09-23 18:44:45 +03:00
TODO Added polls and reconnect. Closes #1 & #7, I hope- 2022-08-26 18:37:36 +03:00
config.ini Added note that Pleroma is not properly supported 2022-09-18 16:55:13 +03:00
requirements.txt Custom formatting? 2022-08-31 16:19:39 +03:00

README

# mastoposter - easy-to-use mastodon-to-[everything] reposter!

Mastoposter is a simple zero-headache* service that forwards your toots from any
Mastodon-compatible Fediverse software (Pleroma also works!) to any of your
other services! For now it supports only Discord webhooks and Telegram, but it
can be easily extended to support pretty much anything!

## Installation

You can run it either on your host machine, or inside a Docker container.
In any case, you have to clone that repo first in order to do anything:
```sh
git clone https://github.com/hatkidchan/mastoposter && cd mastoposter
```

After that, you can either run it in Docker, set up a standalone systemd
service, or just run it as it is!

### Docker:

```sh
docker build -t mastoposter .
docker run --restart=always -dv /path/to/config.ini:/config.ini:ro --name mastoposter mastoposter
```

And you should be good to go

### Systemd

Let's say that you've cloned that repo to the `$MASTOPOSTER_ROOT`, then
configuration should look something like that:

```systemd
[Unit]
Description=Crossposter from Mastodon
After=network.target

[Service]
Type=simple
User=$MASTOPOSTER_USER
ExecStart=/usr/bin/python3 -m mastoposter config.ini
WorkingDirectory=$MASTOPOSTER_ROOT
Restart=on-failure

[Install]
WantedBy=network.target
```

Before running it though, don't forget to install dependencies from the 
./requirements.txt, but it's a good idea to use a virtual environment for that.
Though, that's outside of the scope of that, so I won't cover it here.

### Running manually
Just be in the folder with it, have dependencies installed and run:
python3 -m mastoposter config.ini

## Configuration

WIP, there's a lot to cover