Document ZULIP SITE param in twitter bots.

This commit is contained in:
Tomasz Kolek 2016-11-16 18:35:36 +01:00 committed by Tim Abbott
parent f380127f1e
commit 963de743ec
2 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ def write_config(config, since_id, user):
parser = optparse.OptionParser(r""" 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. Slurp tweets on your timeline into a specific zulip stream.

View file

@ -55,12 +55,12 @@ To use this script:
2. Subscribe to the stream that will receive Twitter updates (default stream: twitter) 2. Subscribe to the stream that will receive Twitter updates (default stream: twitter)
3. Test the script by running it manually, like this: 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 4. Configure a crontab entry for this script. A sample crontab entry
that will process tweets every 5 minutes is: 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 == == Setting up Twitter authentications ==