Skip to content

Change the Mastodon description/biography programatically

License

Notifications You must be signed in to change notification settings

EduFdezSoy/Random-Mastodon-Bio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Mastodon Bio ko-fi

Change the Mastodon description/biography programatically

How to?

Just drop it in somewhere and run composer install to add the dependencies.

Open the 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:

Adding biographies

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.

Docker

If you prefer docker you can use the env vars INSTANCE, ACCESS_TOKEN and BIOS_FILE.

Something more

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 @EduFdezSoy@mastodon.social.

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.

About

Change the Mastodon description/biography programatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages