Skip to content

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"

create_an_app

Copy&Paste to App Manifest JSON (JSON is below this image)

enter_app_manifest

App Manifest
{
  "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

create_an_app_confirm

Set App Icon (optional)

minecraft_icon_for_slack_app 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"

install_to_workspace

copy Bot User Oauth Token from "Oauth & Permissions" section

get_oauth_token

paste to SlackToken in config.yml

Get App-Level Token

click "Generate Token and Scopes" from "Basic Information" section

generate_app_level_token

After setting the Name and Scopes as shown in the image, click the "Generate"

select_app_level_token_scopes

copy Token

get_app_level_roken

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"

slack_channel_details

copy the channel ID as they are listed at the bottom of the "about" tab.

get_slack_channel_id

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.

invite_bot_to_channel