rht
ad9b0e62a4
IRC: Handle error by displaying the error message.
...
The proper solution would be to handle each errors differently. But for
now, logging the message is at least informative to the user.
2023-11-20 14:36:17 -08:00
rht
2814accb09
IRC: Add option for SASL authentication.
...
This additionally reverts to using sync IRC client, because upstream
https://github.com/jaraco/irc only supports it for the sync client.
2023-11-14 15:42:56 -08:00
Anders Kaseorg
059458b4ca
python: Fix PAR001 Redundant parentheses.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-11-11 16:41:52 -08:00
Anders Kaseorg
5c934e544d
ruff: Fix PLR1722 Use sys.exit()
instead of exit
.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-30 11:44:10 -07:00
Anders Kaseorg
fcd4fe330d
ruff: Fix UP031 Use format specifiers instead of percent format.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-27 22:04:41 -07:00
Anders Kaseorg
ddccf0eda3
ruff: Fix UP032 Use f-string instead of format
call.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-27 22:01:58 -07:00
Anders Kaseorg
a9607dfdf9
Convert type comments to Python ≥ 3.6 variable annotations.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-10-18 01:04:47 -07:00
Anders Kaseorg
53e59c8c09
Rename default branch to ‘main’
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-08-24 12:50:52 -07:00
PIG208
9ce7c52a10
pyupgrade: Reformat with --py36-plus.
...
This includes mainly fixes of string literals using f-strings or
.format(...), as well as unpacking of list comprehensions.
2021-06-02 18:45:57 -07:00
PIG208
6f3f9bf7e4
black: Reformat without skipping string normalization.
2021-06-02 18:45:57 -07:00
PIG208
fba21bb00d
black: Reformat skipping string normalization.
2021-06-02 18:45:57 -07:00
PIG208
5580c68ae5
isort: Reformat using isort.
2021-06-02 18:45:57 -07:00
rht
57e8886dfe
API: Rename list_subscriptions to get_subscriptions.
2021-03-11 00:00:56 -08:00
Anders Kaseorg
5b5fda2354
Fix % formatting without a tuple.
...
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-03-04 15:04:38 -08:00
rht
f529bc0d01
IRC bridge: Add documentation on nick password.
2020-08-10 17:12:04 -07:00
rht
fe2a4d6fe8
[BUGFIX] IRC bridge: Use connection initialized from aio_reactor.
...
Additionally, pin the irc library version to 18.0 because the newer
version has an error in the AioReactor:
```
File "/home/rht/code/venv/lib/python3.8/site-packages/irc/bot.py", line 108, in run
self.bot.reactor.scheduler.execute_after(intvl, self.check)
AttributeError: 'AioReactor' object has no attribute 'scheduler'
```
2020-08-10 17:12:04 -07:00
Anders Kaseorg
f616b9259e
irc_mirror_backend: Remove repeated dictionary key.
...
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
2f6623bbc4
cleanup: Remove unused imports.
...
Generated by autoflake.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
5428c5f296
typing: Convert function type annotations to Python 3 style.
...
Generated by com2ann (slightly patched to avoid also converting
assignment type annotations, which require Python 3.6), followed by
some manual whitespace adjustment, and two fixes for use-before-define
issues:
- def set_zulip_client(self, zulipToJabberClient: ZulipToJabberBot) -> None:
+ def set_zulip_client(self, zulipToJabberClient: 'ZulipToJabberBot') -> None:
-def init_from_options(options: Any, client: Optional[str] = None) -> Client:
+def init_from_options(options: Any, client: Optional[str] = None) -> 'Client':
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
fe72f3b131
typing: Remove ‘if False’ guard for typing imports.
...
typing is in the Python 3.5 standard library.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 20:31:14 -07:00
Anders Kaseorg
e30b3b094b
Modernize legacy Python 2 syntax with pyupgrade.
...
Generated by `pyupgrade --py3-plus --keep-percent-format` followed by
manual indentation fixes.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-18 15:04:36 -07:00
rht
1412403037
integrations: Remove from __future__ imports.
2020-04-02 13:02:28 -04:00
rht
a465467388
integrations: Switch to python3.
2020-04-02 13:02:28 -04:00
orientor
d8157d6b80
bridge_with_irc: Initialize IRC bot after checking Zulip bot.
...
Confirm whether Zulip bot is subscribed to the required stream
first and then Initialize IRC bot object.
2020-03-30 17:41:14 -04:00
orientor
de40005f5e
bridge_with_irc: Improve user-friendliness.
...
Edit error and success messages of zulip-irc bridge to be more
user friendly.
2020-03-30 17:41:14 -04:00
rht
b771bacac0
bridge_with_irc: Check if bot is subscribed to stream at startup.
2020-03-27 06:59:29 -04:00
orientor
731eb23c9a
bridge_with_irc: Print message on successful connection.
2020-03-02 05:51:54 -05:00
rht
4773370cc1
bridge_with_irc: Tell people to subscribe their bots to the stream.
2019-01-23 12:40:47 -08:00
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
neiljp (Neil Pilgrim)
617e16cebb
bridges: Bring inter-realm (zulip) bridge into zulip/ & rename others.
2018-08-08 17:26:15 -07:00