Another bot for posting arts to your fediverse timeline. https://udongein.xyz/reisen
Go to file
NaiJi ✨ 8635305740 Add 'post-local.sh' 2022-04-15 16:44:29 +00:00
.gitignore Init 2022-03-24 04:51:03 +03:00
LICENSE Init 2022-03-24 04:51:03 +03:00
README.md Update 'README.md' 2022-03-24 01:52:09 +00:00
download.py Init 2022-03-24 04:51:03 +03:00
post-danbooru.py Init 2022-03-24 04:51:03 +03:00
post-local.py Init 2022-03-24 04:51:03 +03:00
post-local.sh Add 'post-local.sh' 2022-04-15 16:44:29 +00:00
requirements.txt Init 2022-03-24 04:51:03 +03:00
runner Init 2022-03-24 04:51:03 +03:00
tags.dat Init 2022-03-24 04:51:03 +03:00

README.md

udonge-bot

Another bot for posting arts to your timeline.

Currently posting on: https://udongein.xyz/reisen

Initial setup

We support you to create a virtualenv to not pollute your system with modules:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Once it's done, you have to create a file token.dat in put in the account authorization's key. (no instruction given, it changes between your fediverse software).

Edit the api_base_url variable in post-local.py and post-danbooru.py sources. It must contain the url of the instance your bot is going to post on.

post-local.py

Allows you to post random arts from your local /source folder.

  • Create source folder in the same location with the post-local.py script.
  • If you want to download a huge chunk of arts to your folder first, in download.py edit global variable TAGS, write in there 2 tags you need. Now run
python3 download.py
  • In post-local.py edit toot variable, write in there a string you want the bot to write with any post. Hastags, for example.
  • To make a single post, now run
python3 post-local.py

post-danbooru.py

Allows you to repost random arts from danbooru.donmai.us

  • Edit tags.dat file. You can look at already defined tags and use it as example
#first line is for tags you want to search the arts with (must be exactly 2)
#second line is for tags you decline from posting completely (as many as you want)
#third line is for tags you want mastodon to mark as sensitive (as many as you want)
  • To make a single post, now run
python3 post-danbooru.py