Document ZULIP SITE param in twitter bots.
This commit is contained in:
parent
f380127f1e
commit
963de743ec
|
@ -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.
|
||||
|
||||
|
|
|
@ -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 ==
|
||||
|
||||
|
|
Loading…
Reference in a new issue