~detegr/mkbot

Make a bot
Don't crash even with wrong exe
Add var "prefix" to support multiple slacks
Run external binary without environment variables

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~detegr/mkbot
read/write
git@git.sr.ht:~detegr/mkbot

You can also use your local clone with git send-email.

#make a bot

#Usage

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:

{
    "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
    }
}