| 30 | ) |
| 31 | |
| 32 | type BotConfig struct { |
| 33 | AudDToken string `required:"true" default:"test" usage:"the token from dashboard.audd.io" json:"AudDToken"` |
| 34 | Triggers []string `usage:"phrases bot will react to" json:"Triggers"` |
| 35 | AntiTriggers []string `usage:"phrases bot will avoid replying to" json:"AudDTAntiTriggers"` |
| 36 | IgnoreSubreddits []string `usage:"subreddits to ignore" json:"IgnoreSubreddits"` |
| 37 | SubredditsBannedOn []string `usage:"subreddits auddbot is banned on by BotDefense" json:"SubredditsBannedOn"` |
| 38 | ApprovedOn []string `usage:"subreddits the bot can post links on" json:"ApprovedOn"` |
| 39 | DontPostPatreonLinkOn []string `usage:"subreddits not to post Patreon links on'" json:"DontPostPatreonLinkOn"` |
| 40 | DontUseFormattingOn []string `usage:"subreddits not to use formatting on'" json:"DontUseFormattingOn"` |
| 41 | ReplySettings map[string]ReplyConfig `required:"true" json:"ReplySettings"` |
| 42 | MaxTriggerTextLength int `json:"MaxTriggerTextLength"` |
| 43 | LiveStreamMinScore int `json:"LiveStreamMinScore"` |
| 44 | CommentsMinScore int `json:"CommentsMinScore"` |
| 45 | PatreonSupporters []string `json:"patreon_supporters"` |
| 46 | RavenDSN string `default:"" usage:"add a Sentry DSN to capture errors" json:"RavenDSN"` |
| 47 | UserAgent string `json:"UserAgent"` |
| 48 | ClientID string `json:"ClientID"` |
| 49 | ClientSecret string `json:"ClientSecret"` |
| 50 | BotPasswords map[string]string `json:"BotPasswords"` |
| 51 | } |
| 52 | |
| 53 | var stats = map[string]int{} |
| 54 | var statsMu = &sync.Mutex{} |
nothing calls this directly
no outgoing calls
no test coverage detected