dkvasov
b06ebdecef
zulip_botserver: Add option to test third party configs
2018-05-16 10:50:43 -07:00
dkvasov
d3b99959c6
zulip_botserver: Add test to check two bots working together.
2018-05-16 10:50:43 -07:00
dkvasov
2de862cdcd
zulip_botserver/tests: Reformat input to make them more readable.
2018-05-16 10:50:43 -07:00
dkvasov
7bbc81edbd
zulip_botserver: Get rid of unused input parameter: use load_lib_modules func for loading modules in tests.
2018-05-16 10:50:43 -07:00
dkvasov
f6b981b8d5
zulip_bots: Python3 style for types, obey pep8.
2018-05-16 10:50:43 -07:00
dkvasov
ce95f9f4d5
zulip_bots and zulip_botserver: Remove unused imports.
2018-05-16 10:50:43 -07:00
dkvasov
a8665aaac8
zulip_botserver: Add option to set third party configs for bots.
2018-05-16 10:50:43 -07:00
dkvasov
f76287412c
zulip_bots: Get rid of unused imports and use python3 style for type annotations.
2018-05-16 08:15:38 -07:00
dkvasov
be5a7a8c4a
zulip_bots: Clean gyphy bot code.
2018-05-16 08:15:36 -07:00
dkvasov
6542f8c867
zulip_botserver: Add parameter to set custom bot name (for single-bot mode).
2018-05-16 17:41:22 +03:00
dkvasov
aa193c1298
zulip_botserver: Extract input parameters.
2018-05-16 17:40:40 +03:00
Guitar1st
f90913d54c
zulip_botserver: Get rid of some global variables.
2018-05-15 12:32:57 -07:00
Tim Abbott
7b6da265ea
zulip_botserver: Reorder imports.
2018-05-15 12:32:45 -07:00
Tim Abbott
70dd05e5a6
zulip_botserver: Enforce that port argument is an int.
2018-05-15 12:32:45 -07:00
Tim Abbott
5ef224f2a2
zulip_botserver: Eliminate the bots_config global variable.
...
It's easy to just pass it around to the one function that needs it.
2018-05-15 12:32:44 -07:00
Tim Abbott
1e5c0fec1f
zulip_botserver: Fix long line for ImportError.
2018-05-15 12:23:40 -07:00
Tim Abbott
9eda19d6cc
zulip_botserver: Get rid of old six.moves for configparser.
2018-05-15 12:23:10 -07:00
neiljp (Neil Pilgrim)
6bbdc7d9d0
requirements: Upgrade to mypy 0.600.
2018-05-15 10:03:57 -07:00
novokrest
65ebd6e595
yoda: Pass API query parameters as params
dict in requests.get().
2018-05-15 09:12:40 -07:00
novokrest
5ad5e11587
link_shortener: Allow #% characters for shortening URL.
2018-05-15 09:12:40 -07:00
novokrest
bccbda49f2
wikipedia: Pass API query parameters as params
dict in requests.get().
2018-05-15 09:12:40 -07:00
novokrest
8654ce53db
weather: Pass API query parameters as params
dict in requests.get().
2018-05-15 09:12:40 -07:00
novokrest
927fcaa521
susi: Pass API query parameters as params
dict in requests.get().
2018-05-15 09:12:40 -07:00
novokrest
86ffbb2b4a
stack_overflow: Pass API query parameters as params
dict in requests.get().
2018-05-15 09:12:40 -07:00
novokrest
a38917723a
idonethis: Pass API query parameters as params
dict in requests methods.
2018-05-15 09:12:40 -07:00
Yago González
e9a518e93e
api: Warn when SSL/TLS validation is disabled.
2018-05-15 08:17:35 -07:00
Yago González
d85792524e
api: Allow disabling TLS verification via env vars.
2018-05-15 08:17:35 -07:00
Yago González
285464a367
api: Set required fields in the examples.
...
Now all the API examples have their corresponding arguments set as
required when they have to be present for the example to run.
2018-05-15 07:40:48 -07:00
Yago González
cb171409c5
api: Fix edit-message example.
...
The message ID necessarily has to be an integer, and if no casting is
made it was being considered a string, causing problems when running
the example.
2018-05-15 07:40:48 -07:00
Guitar1st
2ba6f75fb3
zulip_botserver: Change style of type annotations to python3
2018-05-14 20:00:44 +00:00
Guitar1st
641665c338
zulip_botserver: Remove unused imports and do some other cleanup.
2018-05-14 20:00:44 +00:00
Yago González
292a3bc067
api: Add execution permissions to welcome-message.
2018-05-14 11:04:57 -07:00
Yago González
817636cbc6
api: Implement /users/me/<stream_id>/topics.
2018-05-14 11:04:57 -07:00
Tim Abbott
b1ab308c26
botserver: Fix mypy error.
2018-05-14 10:07:02 -07:00
Tim Abbott
7124f9dc14
bot_server: Call the bot server initialization code.
2018-05-14 08:50:52 -07:00
Joshua Pan
33e8352998
requirements: Add 'security' extra_require for requests.
...
There were some issues running bots due to SSL issues.
Adding the extra_require requests[security] adds 3
additional packages that deal with these issues.
2018-05-14 04:28:53 -07:00
novokrest
5992050d82
run: Add bot handler's parent dir to the python sys path.
...
Fixes #356
2018-05-09 09:01:17 -07:00
Константин С. Новокрещенов
d7d2f6bbd6
lib: Make StateHandler lazy.
...
Change StateHandler implementation to the following:
- do not fetch state in __init__();
- fetch every key only once on demand and cache it.
Fixes #359
2018-05-08 11:56:26 -07:00
rht
e56a94c853
Dig a tunnel to matrix.
2018-05-07 09:07:36 -07:00
Rohitt Vashishtha
a4b32a4dc8
tools/deploy: Read $SERVER and $TOKEN environment variables.
...
This simplifies the usage of the script by eliminating the need to
pass --server=$SERVER and --token=$TOKEN in each call to the script.
Also renames key=>token for consistency.
2018-05-07 12:31:53 +05:30
novokrest
bf9ad09bc2
deploy: Support new JSON-formatted responses from Botfarm.
2018-05-07 10:29:09 +05:30
novokrest
e81942421e
link_shortener: Print help
when no links found.
2018-05-04 05:09:07 +05:30
novokrest
3db070b99e
link_shortener: Migrate from goo.gl to bit.ly service.
...
Shorten URLs by using bit.ly service instead of goo.gl service.
Fixes #367
2018-05-04 05:09:07 +05:30
Novokreshchenov Konstantin
dcd4c4a96e
deploy: Add tools/deploy ls
command.
...
Displays bot's name, status, email and site. Add `--format` to
pretty-print the list of bots.
2018-05-03 03:34:00 +05:30
Shivamgera
627e9e69d0
docs: Add python3 to ./tools/provision command.
...
Documentation tweaked by tabbott.
2018-05-02 12:18:27 -07:00
neiljp (Neil Pilgrim)
55d75b11bc
packaging: Add py.typed marker file & install in setup.py.
...
This follows the provisional new PEP 561:
https://www.python.org/dev/peps/pep-0561/ .
2018-05-02 12:13:26 -07:00
neiljp (Neil Pilgrim)
7339adc7cf
requirements: Upgrade to mypy 0.590.
2018-05-02 12:13:26 -07:00
novokrest
42c474d273
deploy: Add tools/deploy delete command.
2018-05-02 23:27:43 +05:30
Eeshan Garg
f4bdb059db
pypi: Release version 0.4.6.
...
This includes a critical bug fix for call_on_each_event.
2018-04-27 01:43:42 -02:30
Tim Abbott
d40328a311
api: Fix call_on_each_events handling of empty event_types.
...
The root issue here is that we had been using `None` as a way of
encoding `event_types` as being an argument to not pass to the server
in the API codebase, but the marshalling to send this over the wire
didn't handle that possibility correctly.
This was incorrectly "fixed" in
409bb587429ec4dcb1220a8ed85ec1618ffde0ed; the root cause of the issue
was the refactor to the new approach for registering API endpoints.
2018-04-25 23:01:37 -07:00