Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integ-docs: Update the sample site URLs and bot emails.

Niloth P59839be9d680
diff --git a/templates/zerver/integrations/capistrano.md b/templates/zerver/integrations/capistrano.md
index 943a610802c..4ed08d10276 100644
--- a/templates/zerver/integrations/capistrano.md
+++ b/templates/zerver/integrations/capistrano.md
@@ -20,8 +20,8 @@ Get Zulip notifications for your Capistrano deploys!
desc "Post a message to Zulip after deploy"
task :humbug do
run_locally "echo 'I just deployed to #{stage}! :tada:' | zulip-send \
- --user [email protected] --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
- --site={{ api_url }} \
+ --user capistrano-bot@{{ display_host }} --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
+ --site={{ zulip_url }} \
--stream commits --subject deployments || true"
end
end
diff --git a/templates/zerver/integrations/hubot.md b/templates/zerver/integrations/hubot.md
index 4df1f95edee..a07b9565af8 100644
--- a/templates/zerver/integrations/hubot.md
+++ b/templates/zerver/integrations/hubot.md
@@ -18,8 +18,8 @@ Use Hubot to execute scripts and commands within Zulip!
information of the bot you created, by running:
```
- export HUBOT_ZULIP_SITE="{{ api_url }}"
- export HUBOT_ZULIP_BOT="[email protected]"
+ export HUBOT_ZULIP_SITE="{{ zulip_url }}"
+ export HUBOT_ZULIP_BOT="hubot-bot@{{ zulip_url }}"
export HUBOT_ZULIP_API_KEY="<your_key>"
```
diff --git a/templates/zerver/integrations/include/change-zulip-config-file.md b/templates/zerver/integrations/include/change-zulip-config-file.md
index 950b9f34e5e..30340486663 100644
--- a/templates/zerver/integrations/include/change-zulip-config-file.md
+++ b/templates/zerver/integrations/include/change-zulip-config-file.md
@@ -3,7 +3,7 @@ following lines to specify the email address and API key for your
{{ integration_display_name }} bot:
```
-ZULIP_USER = "{{ integration_name }}[email protected]"
+ZULIP_USER = "{{ integration_name }}-bot@{{ display_host }}"
ZULIP_API_KEY = "0123456789abcdef0123456789abcdef"
ZULIP_SITE = "{{ zulip_url }}"
```
diff --git a/zerver/webhooks/helloworld/doc.md b/zerver/webhooks/helloworld/doc.md
index ecdcd0378e9..3b565437804 100644
--- a/zerver/webhooks/helloworld/doc.md
+++ b/zerver/webhooks/helloworld/doc.md
@@ -23,13 +23,13 @@ integration](/api/incoming-webhooks-walkthrough).
(zulip-server) vagrant@vagrant:/srv/zulip$
./manage.py send_webhook_fixture_message \
> --fixture=zerver/tests/fixtures/helloworld/hello.json \
- > '--url=http://localhost:9991/api/v1/external/helloworld?api_key=abcdefgh&stream=channel%20name;'
+ > '--url=http://localhost:9991/api{{ integration_url }}?api_key=abcdefgh&stream=channel%20name;'
```
Or, use curl:
```
- curl -X POST -H "Content-Type: application/json" -d '{ "featured_title":"Marilyn Monroe", "featured_url":"https://en.wikipedia.org/wiki/Marilyn_Monroe" }' http://localhost:9991/api/v1/external/helloworld\?api_key=abcdefgh&stream=channel%20name;
+ curl -X POST -H "Content-Type: application/json" -d '{ "featured_title":"Marilyn Monroe", "featured_url":"https://en.wikipedia.org/wiki/Marilyn_Monroe" }' http://localhost:9991/api{{ integration_url }}?api_key=abcdefgh&stream=channel%20name;
```
{end_tabs}