mirror of https://github.com/zulip/zulip.git
5980d420a8
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. |
||
---|---|---|
.. | ||
__init__.py | ||
queue_processors.py |