0.0.2 • Published 3 years ago

com.bonjour-lab.slackbotconsole v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

SlackBotErrorHandler

This package enable you to send log directly into a dedicated Slack Channel from your workspace using a Slack bot

Disclaimer

Please note that Bot Integration is a legacy support on slack. This method is outdated but still works for the moment. This method will be deprecated in the near future and possibly removed. We are working on a new integration using slack app, but as we have few program running with this integration we will keep it as this for the moment.

How to use it

First, Create a slack bot on your slack workspace using https://my.slack.com/services/new/bot and note your API Token key

On Unity, create a new SlackBotMessenger Ressource Set and set your API Token Key, channel ID and Bot name. You could also provide various image URL for your slack bot depending on the type of log it will trigger.

image image

On your scene, add the SlackBotMessenger.cs component to your GameObject. Set your differents params. You can cxhoose which type of log you want to send to your slack channel.

Install Package

This package uses the scoped registry feature to import dependent packages. Please add the following sections to the package manifest file (Packages/manifest.json).

To the scopedRegistries section:

{
    "name": "Bonjour-lab",
    "url": "https://registry.npmjs.com",
    "scopes": [
    "com.bonjour-lab"
    ]
}

To the dependencies section:

"com.bonjour-lab.slackbotconsole": "0.0.2",

After changes, the manifest file should look like below:

{
  "scopedRegistries": [
    {
      "name": "Bonjour-lab",
      "url": "https://registry.npmjs.com",
      "scopes": [
        "com.bonjour-lab"
      ]
    }
  ],
  "dependencies": {
    "com.bonjour-lab.slackbotconsole": "0.0.2",
    ...

Tested on

  • Unity 2020 & 2019