Skip to content

SpectacledBear/mastodon-server-bot

Repository files navigation

Mastodon Server Bot

Table of Contents

Purpose

What problem does this project solve?

Development Environment Setup

Prerequisites

  • Python 3.X

Configuration

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.

Quick Install

  1. python -m venv venv - create a Python virtual environment
  2. venv\scripts\activate - start the virtual environment
  3. python -m pip install -r requirements.txt - install required module dependencies

Mastodon API

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.

Scripts

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.

Attribution

This README template is located at https://github.com/SpectacledBear/mastodon-server-bot/blob/main/README.md

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages