add pm banlist:auth and pm banlist:auto
This commit is contained in:
@@ -21,6 +21,8 @@ const (
|
||||
BotQueueBatch = "queue:batch"
|
||||
BotQueueRetries = "queue:retries"
|
||||
BotBanlistEnabled = "banlist:enabled"
|
||||
BotBanlistAuto = "banlist:auto"
|
||||
BotBanlistAuth = "banlist:auth"
|
||||
BotGreylist = "greylist"
|
||||
BotMautrix015Migration = "mautrix015migration"
|
||||
)
|
||||
@@ -72,6 +74,16 @@ func (s Bot) BanlistEnabled() bool {
|
||||
return utils.Bool(s.Get(BotBanlistEnabled))
|
||||
}
|
||||
|
||||
// BanlistAuto option
|
||||
func (s Bot) BanlistAuto() bool {
|
||||
return utils.Bool(s.Get(BotBanlistAuto))
|
||||
}
|
||||
|
||||
// BanlistAuth option
|
||||
func (s Bot) BanlistAuth() bool {
|
||||
return utils.Bool(s.Get(BotBanlistAuth))
|
||||
}
|
||||
|
||||
// Greylist option (duration in minutes)
|
||||
func (s Bot) Greylist() int {
|
||||
return utils.Int(s.Get(BotGreylist))
|
||||
|
||||
Reference in New Issue
Block a user