Skip to content

Commit

Permalink
Update support button for Cloud Slack and Teams (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkosiec authored May 9, 2024
1 parent 0197741 commit 85e70ab
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
10 changes: 8 additions & 2 deletions pkg/bot/interactive/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,16 @@ func (h *HelpMessage) footer() []api.Section {
btns := api.Buttons{
h.btnBuilder.ForURL("Give feedback", "https://feedback.botkube.io", api.ButtonStylePrimary),
h.btnBuilder.ForURL("Read our docs", "https://docs.botkube.io"),
h.btnBuilder.ForURL("Join our Slack", "https://join.botkube.io"),
h.btnBuilder.ForURL("Follow us on Twitter", "https://twitter.com/botkube_io"),
}

if h.platform == config.CloudSlackCommPlatformIntegration || h.platform == config.CloudTeamsCommPlatformIntegration {
btns = append(btns, h.btnBuilder.ForURL("Get support", "https://botkube.io/support"))
} else {
btns = append(btns, h.btnBuilder.ForURL("Join our Slack", "https://join.botkube.io"))
}

btns = append(btns, h.btnBuilder.ForURL("Follow us on Twitter/X", "https://twitter.com/botkube_io"))

if !remote.IsEnabled() {
return []api.Section{
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Automation: https://docs.botkube.io/usage/automated-actions
Give feedback: https://feedback.botkube.io
Read our docs: https://docs.botkube.io
Join our Slack: https://join.botkube.io
Follow us on Twitter: https://twitter.com/botkube_io
Follow us on Twitter/X: https://twitter.com/botkube_io
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**🚀 Botkube instance "testing" is now active.**<br><br>**🛠️ Basic commands**<br>`@Botkube ping` - ping your cluster and check its status
`@Botkube list [source|executor|action|alias]` - list available plugins and features<br> • `@Botkube ping`<br> • `@Botkube list sources`<br> • `@Botkube list executors`<br><br>**📣 Notifications**<br>`@Botkube [enable|disable|status] notifications` - set or query your notification status
`@Botkube edit sourcebindings` - select notification sources for this channel<br> • `@Botkube enable notifications`<br> • `@Botkube disable notifications`<br> • `@Botkube status notifications`<br><br>**Run kubectl commands (if enabled)**<br> • `@Botkube kubectl help`<br><br>**Other features**<br>Automation: https://docs.botkube.io/usage/automated-actions<br><br>Give feedback: https://feedback.botkube.io<br>Read our docs: https://docs.botkube.io<br>Join our Slack: https://join.botkube.io<br>Follow us on Twitter: https://twitter.com/botkube_io<br>
`@Botkube edit sourcebindings` - select notification sources for this channel<br> • `@Botkube enable notifications`<br> • `@Botkube disable notifications`<br> • `@Botkube status notifications`<br><br>**Run kubectl commands (if enabled)**<br> • `@Botkube kubectl help`<br><br>**Other features**<br>Automation: https://docs.botkube.io/usage/automated-actions<br><br>Give feedback: https://feedback.botkube.io<br>Read our docs: https://docs.botkube.io<br>Join our Slack: https://join.botkube.io<br>Follow us on Twitter/X: https://twitter.com/botkube_io<br>
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Automation: https://docs.botkube.io/usage/automated-actions
Give feedback: https://feedback.botkube.io
Read our docs: https://docs.botkube.io
Join our Slack: https://join.botkube.io
Follow us on Twitter: https://twitter.com/botkube_io
Follow us on Twitter/X: https://twitter.com/botkube_io
Original file line number Diff line number Diff line change
Expand Up @@ -353,17 +353,17 @@
"type": "button",
"text": {
"type": "plain_text",
"text": "Join our Slack",
"text": "Get support",
"emoji": true
},
"action_id": "url:https://join.botkube.io",
"url": "https://join.botkube.io"
"action_id": "url:https://botkube.io/support",
"url": "https://botkube.io/support"
},
{
"type": "button",
"text": {
"type": "plain_text",
"text": "Follow us on Twitter",
"text": "Follow us on Twitter/X",
"emoji": true
},
"action_id": "url:https://twitter.com/botkube_io",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,13 @@
},
{
"type": "Action.OpenUrl",
"url": "https://join.botkube.io",
"title": "Join our Slack"
"url": "https://botkube.io/support",
"title": "Get support"
},
{
"type": "Action.OpenUrl",
"url": "https://twitter.com/botkube_io",
"title": "Follow us on Twitter"
"title": "Follow us on Twitter/X"
}
],
"separator": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Automation: https://docs.botkube.io/usage/automated-actions
Give feedback: https://feedback.botkube.io
Read our docs: https://docs.botkube.io
Join our Slack: https://join.botkube.io
Follow us on Twitter: https://twitter.com/botkube_io
Follow us on Twitter/X: https://twitter.com/botkube_io
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ Automation: https://docs.botkube.io/usage/automated-actions
Give feedback: https://feedback.botkube.io
Read our docs: https://docs.botkube.io
Join our Slack: https://join.botkube.io
Follow us on Twitter: https://twitter.com/botkube_io
Follow us on Twitter/X: https://twitter.com/botkube_io

0 comments on commit 85e70ab

Please sign in to comment.