Mirror fade + extend code Mastodon group bot which reposts toots
Go to file
fade 4c046e3870 file distribution 2022-08-22 07:46:49 -04:00
.gitignore init 2022-08-15 12:24:32 +03:00
README.md init 2022-08-15 12:24:32 +03:00
bot.go file distribution 2022-08-22 07:46:49 -04:00
config.go file distribution 2022-08-22 07:46:49 -04:00
config.json init 2022-08-15 12:24:32 +03:00
main.go file distribution 2022-08-22 07:46:49 -04:00

Mastodon group bot

This is a bot which implements group functionality in Mastodon.

Configuration

The bot is configured in a JSON file that looks like this:

{
    "Server":           "https://example.com",
    "ClientID":         "0000000000000000000000000000000000000000000",
    "ClientSecret":     "0000000000000000000000000000000000000000000",
    "AccessToken":      "0000000000000000000000000000000000000000000",
    "WelcomeMessage":   "We have a new member in our group. Please love and favor"
}

Building

go mod init mastodon-group-bot

go mod tidy

go build

Usage

Usage of mastodon-group-bot:
  -config string
        Path to config (default "config.json")