UNPKG

node-red-contrib-botmaster

Version:
47 lines (44 loc) 1.66 kB
<script type="text/javascript"> RED.nodes.registerType('slack-bot',{ category: 'botmaster', color: '#a6bbcf', defaults: { name: {value:""}, clientId: {value:""}, clientSecret: {value:""}, webhookEndpoint: {value: ""} }, icon: "slack.png", label: function() { return this.name||"Slack Bot"; } }); </script> <script type="text/x-red" data-template-name="slack-bot"> <div class="form-row"> <label for="node-input-name"><i class="icon-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Name"> </div> <div class="form-row"> <label for="node-input-clientId"><i class="icon-tag"></i> Client ID</label> <input type="text" id="node-input-clientId" placeholder="Client ID"> </div> <div class="form-row"> <label for="node-input-clientSecret"><i class="icon-tag"></i> Client Secret</label> <input type="text" id="node-input-clientSecret" placeholder="Client Secret"> </div> <div class="form-row"> <label for="node-input-webhookEndpoint"><i class="icon-tag"></i> Endpoint</label> <input type="text" id="node-input-webhookEndpoint" placeholder="Webhook Endpoint"> </div> </script> <script type="text/x-red" data-help-name="slack-bot"> <p> Setup a slack bot. </p> <p> Use this node to provision creentials for a Slack bot. </p> <p> Read the <a href="http://botmasterai.com/getting-started/slack-setup/">mini-tutorial</a> to learn more about setting up credentails. </p> </script>