Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
integrations: Update Twitter Documentation.
Adam Birds503e129af423
diff --git a/templates/zerver/integrations/twitter.md b/templates/zerver/integrations/twitter.mdindex 87c9347437b..8dc0b89fd00 100644--- a/templates/zerver/integrations/twitter.md+++ b/templates/zerver/integrations/twitter.md@@ -2,59 +2,59 @@ Fetch tweets from Twitter in Zulip! This is great for seeing anddiscussing who is talking about you, friends, competitors, orimportant topics in real time.-{!create-stream.md!}+1. {!create-stream.md!}-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**:+1. 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**:-+ -The API keys for "Incoming webhook" bots are limited to only-sending messages via webhooks. Thus, this bot type lessens-the security risks associated with exposing the bot's API-key to third-party services.+ The API keys for "Incoming webhook" bots are limited to only+ sending messages via webhooks. Thus, this bot type lessens+ the security risks associated with exposing the bot's API+ key to third-party services.-Download your new bot's `zuliprc` configuration file.+1. Download your new bot's `zuliprc` configuration file.-{!download-python-bindings.md!}+1. {!download-python-bindings.md!}-The Twitter bot should be set up on a trusted machine, because your API-key is visible to local users through the command line or config-file.+1. The Twitter bot should be set up on a trusted machine, because your API+ key is visible to local users through the command line or config+ file.-Next, install **version 1.0 or later** of the `python-twitter`-library. If your operating system distribution doesn’t package a new-enough version, you can install the library from source from-[the GitHub repository](https://github.com/bear/python-twitter).+1. Next, install **version 1.0 or later** of the `python-twitter`+ library. If your operating system distribution doesn’t package a new+ enough version, you can install the library from source from+ [the GitHub repository](https://github.com/bear/python-twitter).-Next, set up Twitter authentication. This bot uses OAuth to-authenticate with Twitter, and in order to obtain a consumer key &-secret, you must register a new application under your Twitter-account:+1. Next, set up Twitter authentication. This bot uses OAuth to+ authenticate with Twitter, and in order to obtain a consumer key &+ secret, you must register a new application under your Twitter+ account:-1. Log in to <https://apps.twitter.com/>.+1. Log in to <https://apps.twitter.com/>.-2. Click on `Create New App` and fill out the form.+1. Click on `Create New App` and fill out the form.-3. Click on the application you created and click **create my access- token**. Fill in the requested values.--To configure and deploy this bot:+1. Click on the application you created and click **create my access+ token**. Fill in the requested values.1. Create a `~/.zulip_twitterrc` with the following contents:- [twitter]- consumer_key =- consumer_secret =- access_token_key =- access_token_secret =+ ```+ [twitter]+ consumer_key =+ consumer_secret =+ access_token_key =+ access_token_secret =+ ```-2. Place your bot's `zuliprc` in a directory of your choice (for the next step,- `~/zuliprc` is used).+1. Place your bot's `zuliprc` in a directory of your choice (for the next step,+ `~/zuliprc` is used).-3. Test the script by running it manually:+1. Test the script by running it manually:/usr/local/share/zulip/integrations/twitter/twitter-bot --search="@nprnews,quantumphysics" --config-file=~/zuliprc@@ -65,15 +65,17 @@ To configure and deploy this bot:Note: `twitter-bot` may install to a different location onyour operating system distribution.-4. Configure a crontab entry for this script. A sample crontab entry+1. Configure a crontab entry for this script. A sample crontab entrythat will process tweets every minute is:- * * * * * /usr/local/share/zulip/integrations/twitter/twitter-bot --search="@nprnews,- quantum physics" --config-file=~/zuliprc+ ```+ * * * * * /usr/local/share/zulip/integrations/twitter/twitter-bot --search="@nprnews,+ quantum physics" --config-file=~/zuliprc+ ```-When someone tweets a message containing one of your search terms,-you’ll get a Zulip on your specified stream, with the search term as-the topic.+1. When someone tweets a message containing one of your search terms,+ get a Zulip on your specified stream, with the search term as+ the topic.{!congrats.md!}