mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-19 15:59:31 +08:00
feat: implement album handling rules and refactor related logic
This commit is contained in:
@@ -5,6 +5,7 @@ type RuleType string
|
||||
const (
|
||||
FileNameRegex RuleType = "FILENAME-REGEX"
|
||||
MessageRegex RuleType = "MESSAGE-REGEX"
|
||||
IsAlbum RuleType = "IS-ALBUM"
|
||||
)
|
||||
|
||||
func (r RuleType) String() string {
|
||||
@@ -12,5 +13,5 @@ func (r RuleType) String() string {
|
||||
}
|
||||
|
||||
func Values() []RuleType {
|
||||
return []RuleType{FileNameRegex, MessageRegex}
|
||||
return []RuleType{FileNameRegex, MessageRegex, IsAlbum}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user