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
Steve Howell
0fd093a698
bots: Allow users to supply ZULIP_API_KEY, etc.
...
This will make it easier to run standalone
bots in containers like Heroku that prefer
env-var-style configuration.
For now this is undocumented, but we should
update the server docs once a few folks have
tried it out.
(The history behind requiring the config file
is that I wanted to keep things simple and
be strongly opinionated about how you run
bots, so that the docs didn't overwhelm folks,
but this use case has come up more frequently.)
2018-12-09 11:16:30 -08:00
Rohitt Vashishtha
fbe99b812e
lib: Add support for extended mention syntax.
...
We are checking for the extended syntax only on the basis of the
user id so that we can handle cases where a bot is renamed.
2018-11-06 17:14:13 -08:00
novokrest
3448d9c9c1
zulip-run-bot: Add the ability to run a bot by the module name.
2018-07-01 08:08:02 -04:00
Shubham Dhama
918e63a220
zulip_bots: Fix get_storage request arguments in StateHandler.
2018-07-01 08:01:18 -04:00
Shubham Dhama
88b649d689
test_lib: Fix repeated name of test_state_handler.
2018-07-01 08:01:18 -04:00
novokrest
e5239c5c54
lib: Add ExternalBotHandler methods for file uploading.
...
Add methods ExternalBotHandler.upload_file() and
ExternalBotHandler.upload_file_from_path() for uploading
local files to Zulip server.
Fixes #351
2018-07-01 07:57:45 -04:00
Sivagiri Visakan
09a7894a34
bots: Extract path resolution logic into a function.
2018-06-22 07:59:56 -04:00
Sivagiri Visakan
d053528925
bots: Move import_module_from_source to finder.py.
2018-06-22 07:59:56 -04:00
Steve Howell
93661db0d1
bots: Print send_message errors for dev debugging.
2018-06-04 05:59:10 -04:00
Steve Howell
fcd39204a9
bots: Pass through widget_content if passed in.
2018-06-04 05:59:10 -04:00
neiljp (Neil Pilgrim)
4c8d86c1d9
bot lib tests: Move tests of bot library to tests/.
...
This makes it clearer which files are for writing bot tests
vs tests of the infrastructure.
2018-05-30 18:29:47 -07:00