Add Command Functionality to Discord Package & Implement Feedback Webhooks (!3)
Co-authored-by: Layla <layla@layla.gg> Reviewed-on: https://gitea.sumulayla.synology.me/layla/birdbot/pulls/3
This commit was merged in pull request #3.
This commit is contained in:
9
main.go
9
main.go
@@ -83,6 +83,15 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
if cfg.Features.Feedback.IsEnabled() {
|
||||
loader.LoadComponent(modules.NewFeedbackWebhookComponent(cfg.Feedback.WebhookURL, modules.FeedbackWebhookConfiguration{
|
||||
PayloadType: cfg.Feedback.PayloadType,
|
||||
|
||||
SuccessMessage: cfg.Feedback.SuccessMessage,
|
||||
FailureMessage: cfg.Feedback.FailureMessage,
|
||||
}, bot.Session))
|
||||
}
|
||||
|
||||
if _, err := os.Stat(PluginsDirectory); !os.IsNotExist(err) {
|
||||
components := app.LoadPlugins(PluginsDirectory)
|
||||
for _, comp := range components {
|
||||
|
||||
Reference in New Issue
Block a user