Files
BanForge/internal/actions/interface.go
d3m0k1d 4e56d7bb6c
All checks were successful
build / build (push) Successful in 2m25s
feat: recode interfaces
2026-02-23 23:40:44 +03:00

20 lines
334 B
Go

package actions
import "github.com/d3m0k1d/BanForge/internal/config"
type Executor struct {
Action config.Action
}
func (e *Executor) Execute() error {
switch e.Action.Type {
case "email":
return SendEmail(e.Action)
case "webhook":
return SendWebhook(e.Action)
case "script":
return RunScript(e.Action)
}
return nil
}