more logging

This commit is contained in:
mudler
2024-04-19 13:17:08 +02:00
parent e2aa3bedd7
commit 34f6d821b9
5 changed files with 49 additions and 19 deletions

View File

@@ -13,6 +13,10 @@ type Discord struct {
defaultChannel string
}
// NewDiscord creates a new Discord connector
// with the given configuration
// - token: Discord token
// - defaultChannel: Discord channel to always answer even if not mentioned
func NewDiscord(config map[string]string) *Discord {
return &Discord{
token: config["token"],