diff --git a/providers/slack/config/config.go b/providers/slack/config/config.go index 0a54a4b0cd..43e74a87b2 100644 --- a/providers/slack/config/config.go +++ b/providers/slack/config/config.go @@ -18,8 +18,8 @@ var Config = plugin.Provider{ Name: "slack", Use: "slack", Short: "slack team", - MinArgs: 1, - MaxArgs: 1, + MinArgs: 0, + MaxArgs: 0, Discovery: []string{}, Flags: []plugin.Flag{ { diff --git a/providers/slack/connection/connection.go b/providers/slack/connection/connection.go index 8d1d206d6a..cae94c62cf 100644 --- a/providers/slack/connection/connection.go +++ b/providers/slack/connection/connection.go @@ -53,7 +53,7 @@ func NewSlackConnection(id uint32, asset *inventory.Asset, conf *inventory.Confi sc.client = client sc.teamInfo = teamInfo - sc.asset.Name = teamInfo.Name + sc.asset.Name = "Slack team " + teamInfo.Name return sc, nil }