Change the Mastodon description/biography programatically
Just drop it in somewhere and run
composer install to add the dependencies.
change_bio.php and edit those const and vars with your api keys and tokens:
// mastodon auth things const INSTANCE = 'mastodon.social'; const ACCESS_TOKEN = 'your_access_token';
Then just run
php change_bio.php and it will change your header.
It will explode since there is nothing to put atm, lets see how to add some sentences:
If you read the code, it says:
// where are the sentences? $biosFile = 'bios';
so we need to add in the file
bios as many lines as bios we want. One line, one bio, no exception.
Take in mind the current limit is at 500 characters.
Um, oh, do whatever you like with this, I really don't care. MIT License.
If you need some help or want to verbally abuse me just drop me a toot @[email protected].
If you really liked it and feel like I deserve some money, I don't know whats happening to you, but buy me a coffee and I'll continue transforming caffeine into code.