~detegr/mkbot

037f3de03ba89de0473aee8066e7a418a64222de — Antti Keränen 1 year, 3 months ago 59bf325
README.md
1 files changed, 50 insertions(+), 0 deletions(-)

A README.md
A README.md => README.md +50 -0
@@ 0,0 1,50 @@
# make a bot

## Usage
```terraform
module "bqnbot" {
  source = "git::https://git.sr.ht/~detegr/mkbot"

  lang = "langname"
  slack-oauth-token = "xoxb-YOUR-TOKEN-HERE"
}
```

## Slack App Manifest

Example App Manifest that can be used in Slack app management to bootstrap the bot:

```json
{
    "display_information": {
        "name": "YourBot",
        "description": "YourBot description",
        "background_color": "#000000"
    },
    "features": {
        "bot_user": {
            "display_name": "YourBot",
            "always_online": false
        }
    },
    "oauth_config": {
        "scopes": {
            "bot": [
                "app_mentions:read",
                "chat:write"
            ]
        }
    },
    "settings": {
        "event_subscriptions": {
            "request_url": "API gateway url",
            "bot_events": [
                "app_mention"
            ]
        },
        "org_deploy_enabled": false,
        "socket_mode_enabled": false,
        "token_rotation_enabled": false
    }
}
```