What problem does this project solve?
- Python 3.X
Copy the .env.teplate
file to .env
and add your Mastodon server URL and development API credentials.
Details on where to get these values are described in the Mastodon API section.
python -m venv venv
- create a Python virtual environmentvenv\scripts\activate
- start the virtual environmentpython -m pip install -r requirements.txt
- install required module dependencies
The bot scripts rely on the Mastodon web API, accessed using the Mastodon.py
module.
Specifically these Mastodon APIs are used:
To interact with a Mastodon server, the Mastodon server URL and application credentials are required.
Application credentials are created by adding an application within the Development section of your Preferences on the Mastodon server.
When you have the application credentials, add them to your .env
file.
Script | Description |
---|---|
fedi_tips.py | Toots a random tip from the tips/ directory. |
trending_tags.py | Toots the latest trending tags of the Mastodon server. |
This README template is located at https://github.com/SpectacledBear/mastodon-server-bot/blob/main/README.md