{{define "config"}}{
    "key": "ga-hipchat-builder",
    "name": "QOELabs Keybot Bot",
    "description": "store and share public keys over hipchat",
    "vendor": {
        "name": "QOELabs",
        "url": "https://www.qoelabs.com"
    },
    "links": {
        "self": "{{.LocalBaseUrl}}/keybot-connect.json",
        "homepage": "{{.LocalBaseUrl}}/keybot-connect.json"
    },
    "capabilities": {
        "hipchatApiConsumer": {
            "scopes": [
                "send_notification"
            ]
        },
        "installable": {
            "callbackUrl": "{{.LocalBaseUrl}}/installable"
        },
        "configurable": {
             "url": "{{.LocalBaseUrl}}/config"
        },
        "webhook": {
            "url": "{{.LocalBaseUrl}}/set_keys",
            "pattern": "^/setkey",
            "event": "room_message",
            "name": "Set Key Bot"
        }
    }
}
{{end}}

{{define "config"}}{
    "key": "ga-hipchat-builder",
    "name": "QOELabs Keybot Bot",
    "description": "store and share public keys over hipchat",
    "vendor": {
        "name": "QOELabs",
        "url": "https://www.qoelabs.com"
    },
    "links": {
        "self": "{{.LocalBaseUrl}}/keybot-connect.json",
        "homepage": "{{.LocalBaseUrl}}/keybot-connect.json"
    },
    "capabilities": {
        "hipchatApiConsumer": {
            "scopes": [
                "send_notification"
            ]
        },
        "installable": {
            "callbackUrl": "{{.LocalBaseUrl}}/installable"
        },
        "configurable": {
             "url": "{{.LocalBaseUrl}}/config"
        },
        "webhook": {
            "url": "{{.LocalBaseUrl}}/keybot",
            "pattern": "^/keybot",
            "event": "room_message",
            "name": "Key Bot"
        }
    }
}
{{end}}

Rename the bot, single webhook
Rename the bot, single webhook
