From e94efe5497eae6f6bb9ebd68cefa4e53e438d9df Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Sat, 17 Feb 2018 18:33:38 -0330 Subject: [PATCH] markdown macros: Add create-a-bot-indented macro. --- .../zerver/help/include/create-a-bot-indented.md | 12 ++++++++++++ .../include/create-bot-construct-url-indented.md | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 templates/zerver/help/include/create-a-bot-indented.md diff --git a/templates/zerver/help/include/create-a-bot-indented.md b/templates/zerver/help/include/create-a-bot-indented.md new file mode 100644 index 0000000000..046ec0eee5 --- /dev/null +++ b/templates/zerver/help/include/create-a-bot-indented.md @@ -0,0 +1,12 @@ + Next, on your {{ settings_html|safe }}, + [create a bot](/help/add-a-bot-or-integration) for + {{ integration_display_name }}. Make sure that you select + **Incoming webhook** as the **Bot type**: + + ![](/static/images/help/bot_types.png) + + The API key for an incoming webhook bot cannot be used to read messages out + of Zulip. Thus, using an incoming webhook bot lowers the security risk of + exposing the bot's API key to a third-party service. + + Fill out the rest of the fields, and click **Create bot**. diff --git a/templates/zerver/help/include/create-bot-construct-url-indented.md b/templates/zerver/help/include/create-bot-construct-url-indented.md index 035813e625..b2b77433f1 100644 --- a/templates/zerver/help/include/create-bot-construct-url-indented.md +++ b/templates/zerver/help/include/create-bot-construct-url-indented.md @@ -1,15 +1,4 @@ - Next, on your {{ settings_html|safe }}, - [create a bot](/help/add-a-bot-or-integration) for - {{ integration_display_name }}. Make sure that you select - **Incoming webhook** as the **Bot type**: - - ![](/static/images/help/bot_types.png) - - The API key for an incoming webhook bot cannot be used to read messages out - of Zulip. Thus, using an incoming webhook bot lowers the security risk of - exposing the bot's API key to a third-party service. - - Fill out the rest of the fields, and click **Create bot**. + {!create-a-bot-indented.md!} Now, construct the URL for the {{ integration_display_name }} bot using the bot's API key and the desired stream name: