mastodirc

package module
v0.0.0-...-3544a4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 4 Imported by: 0

README

mastodirc builds.sr.ht status

A simple bot that copies your Mastodon home timeline to an IRC channel, live.

Usage

Copy and edit mastodirc.yaml.sample into mastodirc.yaml

Create & authorize a Mastodon app:

go run ./cmd/mastodirc-init -server <mastodon_server_url>

This will automatically update mastodirc.yaml with the appropriate tokens.

Then, run:

go run ./cmd/mastodirc

Statuses from your home timeline will be sent to the IRC channel.

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(path string, cfg *Config) error

Types

type Config

type Config struct {
	MastodonServer string `yaml:"mastodon_server"`
	ClientID       string `yaml:"mastodon_client_id"`
	ClientSecret   string `yaml:"mastodon_client_secret"`
	AccessToken    string `yaml:"mastodon_access_token"`
	IRCServer      string `yaml:"irc_server"`
	Channel        string `yaml:"irc_channel"`
	Nick           string `yaml:"irc_nick"`
}

func ReadConfig

func ReadConfig(path string) (*Config, error)

Directories

Path Synopsis
cmd
mastodirc command
mastodirc-init command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL