Commit graph

127 commits

Author SHA1 Message Date
rht 5b7f0c24bb bridge_with_irc: Implement nickserv password. 2019-01-17 14:19:46 -08:00
rht 5b704b7c1c bridge_with_irc: Prefix zulip->irc message with sender full name. 2019-01-17 14:19:46 -08:00
rht 836a51a8bf bridge_with_irc: Only forward stream messages at the specified topic. 2019-01-17 14:19:46 -08:00
rht 8ef0aba74a bridge_with_irc: Add command line arg to specify topic. 2019-01-16 16:27:52 -08:00
rht 8e69598a46 bridge_with_irc: Add a brief documentation. 2019-01-16 16:27:52 -08:00
rht 9efa0feaaf bridge_with_irc: Bump irc requirements version. 2019-01-16 16:27:52 -08:00
rht e14bb510cb bridge_with_irc: Remove obsolete comment. 2019-01-16 16:27:52 -08:00
rht 116a1228ae bridge_with_irc: Disable echo on Zulip -> IRC. 2019-01-16 16:27:52 -08:00
rht edcf1fd8e9 bridge_with_irc: Fix sending from Zulip to IRC and enable it by default. 2019-01-16 16:27:52 -08:00
rht 910f83ee8e bridge_with_irc: Use async client to avoid timeout. 2019-01-16 16:27:52 -08:00
rht 9be5ec33b3 bridge_with_irc: Relay msg instead of forge msg on IRC -> Zulip. 2019-01-16 16:27:52 -08:00
rht a5bc4b716c bridge_with_irc: Add command line arg to specify stream. 2019-01-16 16:27:52 -08:00
Maxim Vov d68bc7eada twitter: Add --excluded-users and --excluded-terms options.
This makes it easy to filter out an users/terms that are effectively
spam for your use case.
2018-12-13 14:11:20 -08:00
Eeshan Garg 6e443b6d23 zulip_trello.py: Print error if requests isn't installed. 2018-09-25 22:28:25 -02:30
Eeshan Garg 71a15bd89e integrations/trello: Make the zulip_trello script self-contained.
A few users have complained about how hard it is to find the
Trello script on their systems after installing the `zulip`
package. Rishi and I decided that we should instead just ask
the users to download the script directly and run it without
having to install the `zulip` package.

This commit also ensures that the script can be run on both
py2 and py3.
2018-09-25 22:28:25 -02:30
Eeshan Garg 5210e79dbd integrations/trello: Stop logging to CSV file in Trello script.
The information logged to the CSV file is largely redundant, since
the ID of the webhook is already printed to the screen once a
webhook is setup correctly.

Since this is a script that the user is required to run
once, we should minimize its reliance on external files as much
as possible. This makes it easier to run the script when one
is SSH-ing into a server and doesn't really care about where
the script lives, for instance.
2018-09-25 22:28:25 -02:30
Eeshan Garg 1de6613825 integrations/trello: Stop using config files in the Trello script.
A few users have complained about how hard it is to find the
Trello script on their systems after installing the `zulip`
package. One way to solve this issue is to make the Trello
script a part of the exported console scripts in the zulip
package, which would mean that the user would not have to
navigate to a particular directory in order to find the script,
but could run it from a terminal directly.

However, to make this happen, we need to minimize the script's
reliance on external configuration files, because we don't want
the user to have to figure out where the config file lives.
2018-09-25 22:28:25 -02:30
neiljp (Neil Pilgrim) 39fb287fba matrix tests: tweak import and add __init__.py to ensure tests run. 2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) 28f05676f2 matrix: Use six.moves.configparser. 2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) f007fc9aaa matrix tests: Add test for case that zuliprc file does not exist. 2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) 1d01308caf matrix tests: Add test for writing sample config using zuliprc. 2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) 8999f0a352 matrix bridge: Separate print output from sys.exit calls.
This appears to be necessary for acquiring the text for testing.
2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) 71b405e95d zulip bridge: Use python instead of python3 in script.
This script moved from the bots package to the API package, and does not
explicitly require python3.
2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) 617e16cebb bridges: Bring inter-realm (zulip) bridge into zulip/ & rename others. 2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) ec9f72f516 matrix bridge: Add optional from-zuliprc to use with write-sample-config.
If specified, the new option uses the information to pre-populate the
sample configuration file.
2018-08-08 17:26:15 -07:00
neiljp (Neil Pilgrim) 8b4f23d6aa matrix tests: Add test for zulip-to-matrix messages. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 4b50ea2569 matrix tests: Refactor zulip message validity tests. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 02799315ea matrix tests: Add zulip message validity failure tests. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 1e7b5ee5f2 matrix tests: Add zulip message validity success test. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) e693c25abc matrix tests: Add test for sample config generation. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) c692c4712a matrix tests: Refactor running script into helper function. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) fd66eb61c7 matrix tests: Add minimal help test for no-args and with -h. 2018-08-03 16:16:40 -07:00
neiljp (Neil Pilgrim) 97b2a12d21 matrix bridge: Adjust to python2-compatible type annotations. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 2703d4c720 matrix bridge: Update & improve README.md. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 43e80b42da matrix bridge: Add write-sample-config option & remove sample config. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 78c64d069b matrix bridge: Add description of script & some useful tips. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 70ba4c9035 matrix bridge: Improve error handling by exception translation.
Also:
* introduces two internal Bridge_*Exception classes.
* import matrix_client.errors instead of matrix_client.api.
2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) a6e39509d9 matrix bridge: Improve join/leave option.
Original '--no-noise' option had a parameter and did not disable;
new parameter is '--enable-join-leave', and sets same option for
compatibility.
2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) d45b43a9b1 matrix bridge: Configure using config(parser) file instead of python module. 2018-06-04 15:55:14 -07:00
neiljp (Neil Pilgrim) 363720e908 matrix bridge: Add main() function to enable installation. 2018-06-02 09:26:40 -07:00
Tim Abbott 9e6b4edee6 integrations: Remove slack import script.
This was migrated to the Zulip server project some time ago.
2018-05-30 16:10:22 -07:00
novokrest 7a95c31162 mercurial: Rename hook file to zulip_changegroup.py.
Rename hook file from 'zulip-changegroup.py'
to 'zulip_changegroup.py' for importing as module.
2018-05-29 11:45:56 -07:00
novokrest 9b9070808f mercurial: Update changegroup hook according to new mercurial API.
Fixes #322
2018-05-29 11:45:56 -07:00
Tim Abbott 6ca216024f matrix: Fix typo in requirements.txt. 2018-05-29 11:05:01 -07:00
Tim Abbott efcdc712bf matrix: Edit matrix.org README further.
The README is still pretty rough, but this cleans it up a bit.
2018-05-22 14:01:24 -07:00
Rhea Parekh 4c9134815c Matrix: Make minor changes to README.md and config. 2018-05-22 14:01:24 -07:00
Rhea Parekh afb964b65a Matrix: Add command line flag to ignore join/leave events.
Add command line flag 'no_noise' (which is true by default)
to ignore join/leave events. User can enable those events
by pass 'no_noise' as false.
2018-05-22 14:01:24 -07:00
Rhea Parekh 8e1274f555 Matrix: Change naming convention. 2018-05-22 14:01:24 -07:00
Rhea Parekh bb39ce981d Matrix: Refactor function 'matrix_to_zulip' 2018-05-16 11:12:00 -07:00
Rhea Parekh c467b5fd03 Matrix: Handle login and joining room errors. 2018-05-16 11:12:00 -07:00