Sign inSign up

pfitzer/mastoboost

By pfitzer

Updated almost 2 years ago

Automatically boost Mastodon toots with defined hashtags

Image
0

913

pfitzer/mastoboost repository overview

mastoboost

A bot for boosting Mastodon toots with given hashtags.

get the code

If you want to run the code without docker

# clone the repository
git clone https://github.com/pfitzer/mastoboost.git
cd mastoboost
# create virtualenv
python3 -m venv venv
venv/bin/activate
pip install -r requirements.txt

# create envorionment variables
export INSTANCE=https://...
export USERNAME=YOUR_USERNAME
export PASSWORD=YOUR_PASSWORD

nohup python mastoboost/cli.py > /path/to/output.log 2>&1 &
config

The hashtags are defined in the config.yml file.

# config.yml
hashtags:
- tag1
- tag2
- tag3
run with docker compose
# ,env file
INSTANCE=https://...
USERNAME=YOUR_USERNAME
PASSWORD=YOUR_PASSWORD
version: '3'

services:
  app:
    image: pfitzer/mastoboost
    restart: always
    volumes:
      - ./config.yml:/app/config.yml
    env_file:
      - .env
    environment:
      - PYTHONUNBUFFERED=1
    command: >
      sh -c "python mastoboost/cli.py"

Tag summary

Content type

Image

Digest

sha256:8df1060f0

Size

389.5 MB

Last updated

almost 2 years ago

docker pull pfitzer/mastoboost