zulip/zerver
Abhijeet Kaur 5980d420a8 Embedded bots: Fix minor errors to make embedded bots/service run.
Splitting bot_lib.py file into 2 files led to unnecessary
redirection of the code workflow. For an embedded bot/service to
send a reply, it was being redirected 3 times.

First, the code flow comes to "EmbeddedBotHandler" class to send
reply, then it goes to the common function in "zulip_bots/lib.py",
then it would come back to "EmbeddedBotHandler". Later on, if we
create an abstract class, from where the bot work flow would
directly hit and then from there it is classified into
EmbeddedBotHandler or ExternalBotHandler and accordingly it would
get redirected.

Now, first the bot flow goes to it's handler class External or
Embedded (where we pass that this is External or Embedded bot as
parameter) and then goes to a common point and then comes back to
the same class.
2017-07-20 10:22:52 -07:00
..
fixtures markdown.js: Move markdown.js test to bugdown-data.json. 2017-07-18 12:56:47 -07:00
lib Embedded bots: Fix minor errors to make embedded bots/service run. 2017-07-20 10:22:52 -07:00
management management: Add script to merge two streams. 2017-07-18 21:08:24 -07:00
migrations mypy: Fix incorrect mypy annotation in migration. 2017-07-18 12:56:23 -07:00
outgoing_webhooks Outgoing Webhook System: Add usage of Interfaces in DoRestCall. 2017-06-28 11:11:21 -04:00
templatetags tidying: Combine multiple 'import typing' lines onto one line. 2017-07-16 16:43:21 -07:00
tests portico: Add initial why zulip page. 2017-07-19 11:53:06 -07:00
tornado Revert commits related to client_message_id. 2017-07-14 12:13:35 -07:00
views users: Use get_user in patch_bot_backend view. 2017-07-18 17:14:05 -07:00
webhooks github_webhook: Support "ping" events from organization webhooks. 2017-07-17 10:15:28 -07:00
worker Embedded bots: Fix minor errors to make embedded bots/service run. 2017-07-20 10:22:52 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Add notifications on new logins to Zulip. 2017-03-25 16:50:52 -07:00
context_processors.py settings: Change all uses of ZULIP_ADMINISTRATOR to FromAddress.SUPPORT. 2017-07-05 15:33:01 -07:00
decorator.py decorator: Handle invalid JSON in api_key_only_webhook_view. 2017-07-19 10:42:35 -07:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
forms.py emails: Change reset password emails to use to_user_id. 2017-07-16 16:56:39 -07:00
logging_handlers.py logging_handlers: Fix tracebacks being emailed in subject lines. 2017-04-25 18:55:11 -07:00
middleware.py Django 1.11: MIDDLEWARE_CLASSES setting is deprecated. 2017-06-13 15:04:04 -07:00
models.py utils: Cast generate_random_token to str. 2017-07-17 23:18:47 -07:00
signals.py emails: Add to_user_id argument to send_email. 2017-07-16 16:56:39 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py pep8: Add compliance with rule E261 to storage.py. 2017-05-07 23:21:50 -07:00