Mastodon support
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
package core
|
||||
|
||||
type Config struct {
|
||||
Discord DiscordConfig `yaml:"discord"`
|
||||
Discord DiscordConfig `yaml:"discord"`
|
||||
Mastodon MastodonConfig `yaml:"mastodon"`
|
||||
}
|
||||
|
||||
type DiscordConfig struct {
|
||||
@ -12,3 +13,11 @@ type DiscordConfig struct {
|
||||
ArchiveCategory string `yaml:"archive_category" env:"DISCORD_ARCHIVE_CATEGORY"`
|
||||
NotificationChannel string `yaml:"notification_channel" env:"DISCORD_NOTIFICATION_CHANNEL"`
|
||||
}
|
||||
|
||||
type MastodonConfig struct {
|
||||
Server string `yaml:"server" env:"MASTODON_SERVER"`
|
||||
Username string `yaml:"user" env:"MASTODON_USER"`
|
||||
Password string `yaml:"password" env:"MASTODON_PASSWORD"`
|
||||
ClientID string `yaml:"client_id" env:"MASTODON_CLIENT_ID"`
|
||||
ClientSecret string `yaml:"client_secret" env:"MASTODON_CLIENT_SECRET"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user