Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Bot *telebot.Bot
View Source
var Plugins = map[string]MuxPlugin{}
Plugins contains a list of loaded plugins
Functions ¶
func LoadConfig ¶
func LoadConfig(configPath string)
LoadConfig reads configuration into registry.Config
Types ¶
type Configuration ¶
type Configuration struct { TelegramKey string `yaml:"telegram_key"` ReplyTechLink string `yaml:"reply_tech_link"` NametriggerConfig NametriggerPluginConfig `yaml:"nametrigger"` Birthdays map[string]string `yaml:"birthdays"` TimeZone string `yaml:"time_zone"` TimeLoc *time.Location DupeIgnoredDomains []string `yaml:"dupe_ignored_domains"` TwitchAPIKey string `yaml:"twitch_api_key"` TwitchAPISecret string `yaml:"twitch_api_secret"` TwitchStreams []string `yaml:"twitch_streams"` OpenaiApiKey string `yaml:"openai_api_key"` ChatGptUseHistory bool `yaml:"chat_gpt_use_history"` ChatGptSystemPrompt string `yaml:"chat_gpt_system_prompt"` ChatGptUserPrompt string `yaml:"chat_gpt_user_prompt"` ChatGptHistoryDepth int `yaml:"chat_gpt_history_depth"` }
Configuration stores a struct loaded from config.yml
var Config Configuration
type NametriggerPluginConfig ¶
type NametriggerPluginConfig struct {
Triggers []Trigger `yaml:"triggers"`
}
Click to show internal directories.
Click to hide internal directories.