mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
integrations doc: Move hubot doc to separate file.
This commit is contained in:
48
templates/zerver/integrations/hubot.html
Normal file
48
templates/zerver/integrations/hubot.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<ol>
|
||||
<li>
|
||||
<p>
|
||||
Follow the "Getting Started with Hubot" section of the
|
||||
<a href="https://hubot.github.com/docs/#getting-started-with-hubot">Hubot README</a> to create your Hubot.
|
||||
You'll have a new directory from which <code>bin/hubot</code> starts a vanilla Hubot instance with the shell
|
||||
backend.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>In your Hubot's directory, install the Zulip adapter. Run:
|
||||
<pre><code>npm install --save hubot-zulip</code></pre>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<p>
|
||||
On your {{ settings_html|safe }}, create a bot account. Note its username, API key and full name; you
|
||||
will use them on the next step.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li>To run Hubot locally, use:
|
||||
<pre><code>HUBOT_ZULIP_SITE={{ external_api_path_subdomain }} HUBOT_ZULIP_BOT=hubot-bot@example.com HUBOT_ZULIP_API_KEY=your_key bin/hubot --adapter zulip --name "myhubot"</code></pre>
|
||||
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p>
|
||||
The bot account email address and API key are passed to Hubot via environment variables
|
||||
<code>HUBOT_ZULIP_BOT</code> and <code>HUBOT_ZULIP_API_KEY</code>. The <code>--name</code> parameter must match
|
||||
the name you gave the bot on the settings page.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Hubot will automatically listen for commands on all public streams. You can also invite Hubot to invite-only
|
||||
streams.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To test your Hubot installation, send it an @-notification with a basic command, for example
|
||||
<code>@Hubot pug me</code>, which should produce a result like this:
|
||||
</p>
|
||||
|
||||
<img class="screenshot" src="/static/images/integrations/hubot/001.png"/>
|
||||
|
||||
<p><a href='https://github.com/zulip/hubot-zulip'>Source code for the hubot-zulip adapter is available on GitHub</a>.
|
||||
</p>
|
||||
<p><a href="#hubot-integrations">Check out additional Zulip integrations available via Hubot</a></p>
|
||||
@@ -117,47 +117,6 @@
|
||||
{% endif %}
|
||||
|
||||
|
||||
<div id="hubot" class="integration-instructions">
|
||||
|
||||
|
||||
<ol>
|
||||
<li><p>Follow the "Getting Started with Hubot" section of the <a href="https://hubot.github.com/docs/#getting-started-with-hubot">Hubot README</a> to create your Hubot. You'll have a new directory from which <code>bin/hubot</code> starts a vanilla Hubot instance with the shell backend.</p></li>
|
||||
|
||||
<li>In your Hubot's directory, install the Zulip adapter. Run:
|
||||
<pre><code>npm install --save hubot-zulip</code></pre>
|
||||
</li>
|
||||
|
||||
<li><p>On your {{ settings_html|safe }}, create a bot account. Note its username, API key and full name; you will use them on the next step.</p></li>
|
||||
|
||||
<li>To run Hubot locally, use:
|
||||
<pre><code>HUBOT_ZULIP_SITE={{ external_api_path_subdomain }} HUBOT_ZULIP_BOT=hubot-bot@example.com HUBOT_ZULIP_API_KEY=your_key bin/hubot --adapter zulip --name "myhubot"</code></pre>
|
||||
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p>The bot account email address and API key are passed to Hubot via environment variables <code>HUBOT_ZULIP_BOT</code> and <code>HUBOT_ZULIP_API_KEY</code>. The <code>--name</code> parameter must match the name you gave the bot on the settings page.</p>
|
||||
|
||||
<p>
|
||||
Hubot will automatically listen for commands on all public streams. You can also invite Hubot to invite-only streams.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To test your Hubot installation, send it an @-notification with a basic command, for example <code>@Hubot pug me</code>, which should produce a result like this:
|
||||
</p>
|
||||
|
||||
<img class="screenshot" src="/static/images/integrations/hubot/001.png" />
|
||||
|
||||
<p><a href='https://github.com/zulip/hubot-zulip'>Source code for the hubot-zulip adapter is available on GitHub</a>.</p>
|
||||
<p><a href="#hubot-integrations">Check out additional Zulip integrations available via Hubot</a></p>
|
||||
|
||||
<p style="font-size:11px; font-style:italic;">
|
||||
Logos are trademarks of their respective owners.
|
||||
None of the integrations on this page are created by,
|
||||
affiliated with, or supported by the companies
|
||||
represented by the logos.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="jenkins" class="integration-instructions">
|
||||
|
||||
|
||||
|
||||
@@ -194,7 +194,7 @@ INTEGRATIONS = {
|
||||
display_name='Google Calendar',
|
||||
doc='zerver/integrations/google-calendar.html'
|
||||
),
|
||||
'hubot': Integration('hubot', 'hubot'),
|
||||
'hubot': Integration('hubot', 'hubot', doc='zerver/integrations/hubot.html'),
|
||||
'jenkins': Integration('jenkins', 'jenkins', secondary_line_text='(or Hudson)'),
|
||||
'jira-plugin': Integration(
|
||||
'jira-plugin',
|
||||
|
||||
Reference in New Issue
Block a user