set default POSTMOOGLE_USERS pattern

This commit is contained in:
Aine
2022-08-29 20:56:28 +03:00
parent 74e7fa5f3b
commit 0ba951fbe6
6 changed files with 43 additions and 52 deletions

View File

@@ -1,7 +1,5 @@
package config
import "regexp"
// Config of Postmoogle
type Config struct {
// Homeserver url
@@ -24,10 +22,10 @@ type Config struct {
MaxSize int
// StatusMsg of the bot
StatusMsg string
// Users holds list of allowed users (wildcards supported), e.g.: @*:example.com, @bot.*:example.com, @admin:*. Empty = *
Users []*regexp.Regexp
// Admins holds list of admin users (wildcards supported), e.g.: @*:example.com, @bot.*:example.com, @admin:*. Empty = *
Admins []*regexp.Regexp
// Users holds list of allowed users (wildcards supported), e.g.: @*:example.com, @bot.*:example.com, @admin:*. Empty = homeserver only
Users []string
// Admins holds list of admin users (wildcards supported), e.g.: @*:example.com, @bot.*:example.com, @admin:*. Empty = no admins
Admins []string
// DB config
DB DB