From 963de743ec0b82b9adaa1cfbc9e16ccc81d85307 Mon Sep 17 00:00:00 2001 From: Tomasz Kolek Date: Wed, 16 Nov 2016 18:35:36 +0100 Subject: [PATCH] Document ZULIP SITE param in twitter bots. --- integrations/twitter/twitter-bot | 2 +- integrations/twitter/twitter-search-bot | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/twitter/twitter-bot b/integrations/twitter/twitter-bot index 1748de9..aec159d 100755 --- a/integrations/twitter/twitter-bot +++ b/integrations/twitter/twitter-bot @@ -41,7 +41,7 @@ def write_config(config, since_id, user): parser = optparse.OptionParser(r""" -%prog --user foo@example.com --api-key 0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 --twitter-id twitter_handle +%prog --user foo@example.com --api-key 0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 --twitter-id twitter_handle --site=https://zulip.example.com Slurp tweets on your timeline into a specific zulip stream. diff --git a/integrations/twitter/twitter-search-bot b/integrations/twitter/twitter-search-bot index 426b5f7..62579e2 100755 --- a/integrations/twitter/twitter-search-bot +++ b/integrations/twitter/twitter-search-bot @@ -55,12 +55,12 @@ To use this script: 2. Subscribe to the stream that will receive Twitter updates (default stream: twitter) 3. Test the script by running it manually, like this: -/usr/local/share/zulip/integrations/twitter/twitter-search-bot --search="@nprnews,quantum physics" +/usr/local/share/zulip/integrations/twitter/twitter-search-bot --search="@nprnews,quantum physics" --site=https://zulip.example.com 4. Configure a crontab entry for this script. A sample crontab entry that will process tweets every 5 minutes is: -*/5 * * * * /usr/local/share/zulip/integrations/twitter/twitter-search-bot --search="@nprnews,quantum physics" +*/5 * * * * /usr/local/share/zulip/integrations/twitter/twitter-search-bot --search="@nprnews,quantum physics" --site=https://zulip.example.com == Setting up Twitter authentications ==