@@ -50,41 +50,33 @@ Officially Supported Chat Providers
50
50
51
51
We officially provide support for the following chat providers with hubot:
52
52
53
- * `Slack <https://github.com/slackapi/hubot-slack >`_
54
- * Microsoft Teams (via `BotFramework <https://github.com/Microsoft/BotFramework-Hubot >`_)
55
- * `Mattermost version 5 <https://github.com/loafoe/hubot-matteruser >`_
56
- * `Rocket.Chat <https://github.com/RocketChat/hubot-rocketchat >`_
57
- * `Cisco Spark <https://github.com/tonybaloney/hubot-spark >`_
53
+ * `Slack <https://github.com/hubot-friends/hubot-slack >`_
58
54
59
55
Officially Unsupported Chat Providers
60
56
=====================================
61
57
62
- We do not provide support for the following adapters, but they are still bundled in the
63
- st2chatops package, can be configured in ``st2chatops.env ``, and still work (as far as we
64
- know).
58
+ We do not provide support for the following adapters as of st2chatops 3.9. They are still bundled in the
59
+ st2chatops 3.8 package, and can be configured in ``st2chatops.env ``, and may still work.
65
60
61
+ * Microsoft Teams (via `BotFramework <https://github.com/Microsoft/BotFramework-Hubot >`_) See :doc: `3.8 documentation <msteams >`
62
+ * `Mattermost version 5 <https://github.com/loafoe/hubot-matteruser >`_
63
+ * `Rocket.Chat <https://github.com/RocketChat/hubot-rocketchat >`_
64
+ * `Cisco Spark <https://github.com/tonybaloney/hubot-spark >`_
66
65
* `Flowdock <https://github.com/flowdock/hubot-flowdock >`_
67
66
* `XMPP <https://github.com/markstory/hubot-xmpp >`_
68
67
* `IRC <https://github.com/nandub/hubot-irc >`_
69
68
70
69
Configuration
71
70
=============
72
71
73
- .. note ::
74
-
75
- Configuring st2chatops with Microsoft Teams is a more involved process. Please see
76
- :doc: `our documentation <msteams >` specifically for that chat provider.
77
- All other chat providers can be configured in ``st2chatops.env `` with the instructions
78
- below.
79
-
80
72
Package-based Install
81
73
~~~~~~~~~~~~~~~~~~~~~
82
74
83
75
If you installed |st2 | following the :doc: `install docs </install/index >`, the ``st2chatops ``
84
76
package will take care of `almost ` everything for you. Hubot with the necessary adapters is already
85
77
installed, and StackStorm :ref: `API keys <authentication-apikeys >` have been configured.
86
78
87
- You just need to tell |st2 | which Chat service to use - e.g. Slack, MatterMost, etc . You will also need
79
+ You just need to tell |st2 | which Chat service to use - e.g. Slack. You will also need
88
80
to give it credentials. Your Chat service may also need configuration. For example, to configure Slack,
89
81
you first need to add a new Hubot integration to Slack. You can do this through Slack's admin interface.
90
82
Take note of the ``HUBOT_SLACK_TOKEN `` that Slack provides.
@@ -94,27 +86,25 @@ your adapter. For example, if you are configuring Slack, look for this section:
94
86
95
87
.. code-block :: bash
96
88
97
- # Slack settings (https://github.com/slackhq /hubot-slack):
98
- #
89
+ # Slack App YAML settings (https://github.com/hubot-friends /hubot-slack?tab=readme-ov-file#sample-yaml)
90
+ # Confirm your existing Modern Slack App or a newly created Modern slack app has the above permissions
99
91
# export HUBOT_ADAPTER=slack
100
- # Obtain the Slack token from your app page at api.slack.com, it's the "Bot
101
- # User OAuth Access Token" in the "OAuth & Permissions" section.
102
- # export HUBOT_SLACK_TOKEN=xoxb-CHANGE-ME-PLEASE
103
- # Uncomment the following line to force hubot to exit if disconnected from slack.
104
- # export HUBOT_SLACK_EXIT_ON_DISCONNECT=1
92
+ # Obtain the Bot user OAuth Token on the Oauth & Permissions section
93
+ # export HUBOT_SLACK_BOT_TOKEN=xoxb-CHANGE-ME-PLEASE
94
+ # Obtain a App-Level Token on the Basic Information section, scopes required: connections:write
95
+ # export HUBOT_SLACK_APP_TOKEN=xapp-CHANGE-ME-PLEASE
105
96
106
97
Edit this file so it looks something like this:
107
98
108
99
.. code-block :: bash
109
100
110
- # Slack settings (https://github.com/slackhq /hubot-slack):
111
- #
101
+ # Slack App YAML settings (https://github.com/hubot-friends /hubot-slack?tab=readme-ov-file#sample-yaml)
102
+ # Confirm your existing Modern Slack App or a newly created Modern slack app has the above permissions
112
103
export HUBOT_ADAPTER=slack
113
- # Obtain the Slack token from your app page at api.slack.com, it's the "Bot
114
- # User OAuth Access Token" in the "OAuth & Permissions" section.
115
- export HUBOT_SLACK_TOKEN=xoxb-SUPER-SECRET-TOKEN
116
- # Uncomment the following line to force hubot to exit if disconnected from slack.
117
- export HUBOT_SLACK_EXIT_ON_DISCONNECT=1
104
+ # Obtain the Bot user OAuth Token on the Oauth & Permissions section
105
+ export HUBOT_SLACK_BOT_TOKEN=xoxb-## ##-####-####
106
+ # Obtain a App-Level Token on the Basic Information section, scopes required: connections:write
107
+ export HUBOT_SLACK_APP_TOKEN=xapp-## ##-####-####
118
108
119
109
Your specific Chat service may require different settings. Any environment settings needed can be
120
110
added to this file.
@@ -144,8 +134,8 @@ Restart ``st2chatops`` after creating that file.
144
134
Using an External Adapter
145
135
~~~~~~~~~~~~~~~~~~~~~~~~~
146
136
147
- The ``st2chatops `` package includes adapters for common chat services , but if an
148
- adapter for a service you use isn't bundled there, don't worry: you can install it manually.
137
+ The ``st2chatops `` package includes adapters for Slack , but if an
138
+ adapter for a service you use isn't bundled there, don't worry: you can install it manually or try st2chatops 3.8 .
149
139
150
140
For example, here's how to connect |st2 | to Yammer using the ``hubot-yammer `` adapter:
151
141
0 commit comments