Setting up slack app
Create the New App
create app at https://api.slack.com/apps by clicking "Create New App"
Select "From an app manifest"
Copy&Paste to App Manifest JSON (JSON is below this image)
{
"display_information": {
"name": "Minecraft server",
"description": "with Slack Integration plugin",
"background_color": "#49992c"
},
"features": {
"app_home": {
"home_tab_enabled": true,
"messages_tab_enabled": false,
"messages_tab_read_only_enabled": true
},
"bot_user": {
"display_name": "Minecraft server",
"always_online": true
},
"slash_commands": [
{
"command": "/mcserver",
"description": "minecraft server command",
"usage_hint": "time set day",
"should_escape": false
}
]
},
"oauth_config": {
"scopes": {
"bot": [
"channels:history",
"channels:write.topic",
"chat:write",
"chat:write.customize",
"users:read",
"commands"
]
}
},
"settings": {
"event_subscriptions": {
"bot_events": [
"app_home_opened",
"message.channels"
]
},
"interactivity": {
"is_enabled": true
},
"org_deploy_enabled": false,
"socket_mode_enabled": true,
"token_rotation_enabled": false
}
}
click "Create"
to confirm
Set App Icon (optional)
Setting the AppIcon to this image will further improve the look of the post when updating the topic 🥴
Get Oauth Token
click "Install to Workspace"
copy Bot User Oauth Token from "Oauth & Permissions" section
paste to SlackToken
in config.yml
Get App-Level Token
click "Generate Token and Scopes"
from "Basic Information" section
After setting the Name and Scopes as shown in the image, click the "Generate"
copy Token
paste to SlackSocketToken
in config.yml
Get Channel Id
It is recommended to set up separate channels for ChatSync and ConsoleChannel
In slack, right-click on the channel you want to connect and select "View Channnel Details"
copy the channel ID as they are listed at the bottom of the "about"
tab.
paste to ChatSync.SlackChannelId
or Console.SlackChannelId
in config.yml
invite bot to Slack Channel
On the slack channel you want to connect to, type /invite
and select "Add apps to this channel"
add Minecraft server
.