daad7f24e4
With this change, StateHandler.put() does only accept JSON-able objects by default. The incrementor test tried to store the return value of send_reply(), a non-JSON-able MockObject, in the state. Therefore, this commits also sets functional default test return values for send_message() and send_reply(). Finally, it fixes the tictactoe bot which relied on directly modifying the state_ attribute. |
||
---|---|---|
.. | ||
zulip_bots | ||
architecture.md | ||
generate_manifest.py | ||
README.md | ||
setup.py |
Zulip bots
This directory contains the source code for the zulip_bots
PyPI package.
The Zulip documentation has guides on using Zulip's bot system and writing your own bots.
Directory structure
zulip_bots # This directory
├───zulip_bots # `zulip_bots` package.
│ ├───bots/ # Actively maintained and tested bots.
│ ├───bots_unmaintained/ # Unmaintained, potentially broken bots.
│ ├───lib.py # Backbone of run.py
│ ├───provision.py # Creates a development environment.
│ ├───run.py # Used to run bots.
│ ├───test_lib.py # Backbone for bot unit tests.
│ ├───test_run.py # Unit tests for run.py
│ └───zulip_bot_output.py # Used to test bots in the command line.
├───generate_manifest.py # Helper-script for packaging.
└───setup.py # Script for packaging.