Rename humbug-send to zulip-send.
(imported from commit 61400841f8fffe4c706d867aaa012059bcba271d)
This commit is contained in:
parent
084847b0d7
commit
402701dc8e
|
@ -69,15 +69,15 @@ msg will describe what went wrong.
|
||||||
|
|
||||||
#### Sending messages
|
#### Sending messages
|
||||||
|
|
||||||
You can use the included `humbug-send` script to send messages via the
|
You can use the included `zulip-send` script to send messages via the
|
||||||
API directly from existing scripts.
|
API directly from existing scripts.
|
||||||
|
|
||||||
humbug-send hamlet@example.com cordelia@example.com -m \
|
zulip-send hamlet@example.com cordelia@example.com -m \
|
||||||
"Conscience doth make cowards of us all."
|
"Conscience doth make cowards of us all."
|
||||||
|
|
||||||
Alternatively, if you don't want to use your ~/.zuliprc file:
|
Alternatively, if you don't want to use your ~/.zuliprc file:
|
||||||
|
|
||||||
humbug-send --user shakespeare-bot@example.com \
|
zulip-send --user shakespeare-bot@example.com \
|
||||||
--api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
|
--api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
|
||||||
hamlet@example.com cordelia@example.com -m \
|
hamlet@example.com cordelia@example.com -m \
|
||||||
"Conscience doth make cowards of us all."
|
"Conscience doth make cowards of us all."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# humbug-send -- Sends a message to the specified recipients.
|
# zulip-send -- Sends a message to the specified recipients.
|
||||||
|
|
||||||
# Copyright © 2012 Zulip, Inc.
|
# Copyright © 2012 Zulip, Inc.
|
||||||
#
|
#
|
||||||
|
@ -30,7 +30,7 @@ import logging
|
||||||
|
|
||||||
logging.basicConfig()
|
logging.basicConfig()
|
||||||
|
|
||||||
log = logging.getLogger('humbug-send')
|
log = logging.getLogger('zulip-send')
|
||||||
|
|
||||||
def do_send_message(client, message_data ):
|
def do_send_message(client, message_data ):
|
||||||
'''Sends a message and optionally prints status about the same.'''
|
'''Sends a message and optionally prints status about the same.'''
|
2
setup.py
2
setup.py
|
@ -34,5 +34,5 @@ setup(name='zulip',
|
||||||
[('share/humbug/demos',
|
[('share/humbug/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/humbug-send"],
|
scripts=["bin/zulip-send"],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue