Rename /usr/local/share/humbug/ to /usr/local/share/zulip/.
(imported from commit 6b5d13b36f96c7174e70ce1391f1d66724c45a62)
This commit is contained in:
parent
af771433d7
commit
bd133f6bd4
|
@ -28,17 +28,17 @@ To use this script:
|
||||||
3. create a ~/.zuliprc, or specify user and api-key with command line arguments
|
3. create a ~/.zuliprc, or specify user and api-key with command line arguments
|
||||||
4. Test the script by running it manually, like this:
|
4. Test the script by running it manually, like this:
|
||||||
|
|
||||||
/usr/local/share/humbug/demos/rss-bot
|
/usr/local/share/zulip/demos/rss-bot
|
||||||
|
|
||||||
You can customize the location on the feed file and recipient stream, e.g.:
|
You can customize the location on the feed file and recipient stream, e.g.:
|
||||||
|
|
||||||
/usr/local/share/humbug/demos/rss-bot --feed-file=/path/to/my-feeds --stream=my-rss-stream
|
/usr/local/share/zulip/demos/rss-bot --feed-file=/path/to/my-feeds --stream=my-rss-stream
|
||||||
|
|
||||||
4. Configure a crontab entry for this script. A sample crontab entry for
|
4. Configure a crontab entry for this script. A sample crontab entry for
|
||||||
processing feeds stored in the default location and sending to the default
|
processing feeds stored in the default location and sending to the default
|
||||||
stream every 5 minutes is:
|
stream every 5 minutes is:
|
||||||
|
|
||||||
*/5 * * * * /usr/local/share/humbug/demos/rss-bot"""
|
*/5 * * * * /usr/local/share/zulip/demos/rss-bot"""
|
||||||
|
|
||||||
parser = optparse.OptionParser(usage)
|
parser = optparse.OptionParser(usage)
|
||||||
parser.add_option('--stream',
|
parser.add_option('--stream',
|
||||||
|
|
|
@ -29,12 +29,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/humbug/demos/twitter-search-bot --search="@nprnews,quantum physics"
|
/usr/local/share/zulip/demos/twitter-search-bot --search="@nprnews,quantum physics"
|
||||||
|
|
||||||
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/humbug/demos/twitter-search-bot --search="@nprnews,quantum physics"
|
*/5 * * * * /usr/local/share/zulip/demos/twitter-search-bot --search="@nprnews,quantum physics"
|
||||||
|
|
||||||
== Setting up Twitter authentications ==
|
== Setting up Twitter authentications ==
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,10 @@ define contact{
|
||||||
# Zulip commands
|
# Zulip commands
|
||||||
define command {
|
define command {
|
||||||
command_name notify-host-by-zulip
|
command_name notify-host-by-zulip
|
||||||
command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$"
|
command_line /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$"
|
||||||
}
|
}
|
||||||
|
|
||||||
define command {
|
define command {
|
||||||
command_name notify-service-by-zulip
|
command_name notify-service-by-zulip
|
||||||
command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$"
|
command_line /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$"
|
||||||
}
|
}
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -26,12 +26,12 @@ setup(name='zulip',
|
||||||
],
|
],
|
||||||
url='https://www.zulip.com/dist/api/',
|
url='https://www.zulip.com/dist/api/',
|
||||||
packages=['zulip'],
|
packages=['zulip'],
|
||||||
data_files=[('share/humbug/examples', ["examples/zuliprc", "examples/send-message", "examples/subscribe",
|
data_files=[('share/zulip/examples', ["examples/zuliprc", "examples/send-message", "examples/subscribe",
|
||||||
"examples/get-public-streams", "examples/unsubscribe",
|
"examples/get-public-streams", "examples/unsubscribe",
|
||||||
"examples/list-members", "examples/list-subscriptions",
|
"examples/list-members", "examples/list-subscriptions",
|
||||||
"examples/print-messages"])] + \
|
"examples/print-messages"])] + \
|
||||||
list(recur_expand('share/humbug', 'integrations/')) + \
|
list(recur_expand('share/zulip', 'integrations/')) + \
|
||||||
[('share/humbug/demos',
|
[('share/zulip/demos',
|
||||||
[os.path.join("demos", relpath) for relpath in
|
[os.path.join("demos", relpath) for relpath in
|
||||||
os.listdir("demos")])],
|
os.listdir("demos")])],
|
||||||
scripts=["bin/zulip-send"],
|
scripts=["bin/zulip-send"],
|
||||||
|
|
Loading…
Reference in a new issue