Python bot for cross-posting reddit posts to Mastodon.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
marvin8 9522514f51
Squash merge of Async branch
2 weeks ago
src/tootbot Squash merge of Async branch 2 weeks ago
.flake8 Squash Merge PR 41 3 months ago
.gitignore Squash merge of Async branch 2 weeks ago
.pre-commit-config.yaml Squash merge of Async branch 2 weeks ago
.woodpecker.yml Squash Merge PR 41 3 months ago
CHANGELOG.md Squash merge of Async branch 2 weeks ago
README.md Squash Merge PR 41 3 months ago
config.ini New features: 2 years ago
license.txt Inital fork version from https://github.com/corbindavenport/tootbot 3 years ago
poetry.lock Squash merge of Async branch 2 weeks ago
pyproject.toml Squash merge of Async branch 2 weeks ago

README.md

Tootbot

This is a Python bot that looks up posts from specified subreddits and automatically posts them on Mastodon. It is based on reddit-twitter-bot.


!!! This version of Tootbot no longer supports posting to Twitter. !!!

If you need twitter functionality look into reddit-twitter-bot as a possible alternative.

!!! This version of Tootbot no longer supports deleting old toots. !!!

If you'd like to delete older toots from your Mastodon account look into MastodonAmnesia as a tool that might work for you.


Features:

  • Tootbot posts to Mastodon
  • Media from direct links, Gfycat, Imgur, Reddit, and Giphy is automatically attached in the social media post. Tootbot attaches up to the first 4 pictures for imgur albums and reddit gallery posts.
  • Links that do not contain media can be skipped, ideal for meme accounts like @babyelephantgifs
  • NSFW content, spoilers, and self-posts can be filtered
  • Tootbot can monitor multiple subreddits at once
  • Tootbot is fully open-source, so you don't have to give an external service full access to your social media accounts
  • Tootbot also checks the sha256 checksum of media files to stop posting of the same media file from different subreddits.
  • Tootbot can ping a Healthchecks instance for monitoring continuous operation of Tootbot
  • Optionally throttle down frequency of tooting when mastodon errors are detected.

Disclaimer

The developers of Tootbot hold no liability for what you do with this script or what happens to you by using this script. Abusing this script can get you banned from Mastodon, so make sure to read up on proper usage of the API for each site.

Setup and usage

For instructions on setting up and using Tootbot, please visit the wiki

Supporting Tootbot

There are a number of ways you can support Tootbot:

  • Create an issue with problems or ideas you have with/for Tootboot
  • You can buy me a coffee.
  • You can send me small change in Monero to the address below:

Monero donation address: 87C65WhSDMhg4GfCBoiy861XTB6DL2MwHT3SWudhjR3LMeGEJG8zeZZ9y4Exrtx5ihavXyfSEschtH4JqHFQS2k1Hmn2Lkt