Follow the steps below.
Install Plugin
- Upload this repository to
plugins
directory, or install from admin page.
- Activate
WP Slack Logbot
Create Slack App
In order to complete installation, need to create a slack-bot user and issue the
Bot User OAuth Access Token
.
- Visit SlackAPI page and click
Create New App
button on the top right.
- Fill-out the following fields, and click
Create App
button.
App Name
Development Slack Workspace
- Add Bot User
- Click
Bot User
link on the left side menu.
- Fill-out the following fields, and click
Add Bot User
- Enable Event Subscriptions
- Click
Event Subscriptions
link on the left side menu.
- Turn
Enable Events
ON.
- Put
Request URL
like following URL.
https://your-domain.com/wp-json/wp-slack-logbot/events/
- Then, it would be verified.
- Set the following
Subscribe to Workspace Events
message.channels
message.groups
- Set
Subscribe to Bot Events
like below
message.channels
message.groups
- Click
Save Changes
- After saving completed, follow the direction
OAuth & Permissions
- Click
OAuth & Permissions
link on the left side menu.
- Click
Install App to Workspace
button
-
Then it will be shown
OAuth Access Token
and Bot User OAuth Access Token
-
Copy
Bot User OAuth Access Token
- This time, only use
Bot User OAuth Access Token
Plugin Settings
- Go to Plugin Setting page
- Paste
Bot User OAuth Access Token
which is copied earlier.
- Then click
Save Changes
button
Invitation to the channel
- Invite
logbot
to the channels
- Both are allowed to invite logbot to the public channels and private channels.