From 5363ca9116b7440b4d9a9344868f6dec091868bd Mon Sep 17 00:00:00 2001 From: KKlochko Date: Wed, 21 Jun 2023 15:18:21 +0300 Subject: [PATCH] Update the README. --- README.rst | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/README.rst b/README.rst index 05ad625..0078d0a 100644 --- a/README.rst +++ b/README.rst @@ -6,6 +6,48 @@ dots-matrix-bot is the interface for access to `Dots Platform Clients API `__ using matrix. +Setup +===== + +- setup `dots-bot-api `__, + before continue. + +- clone this repository. + +- create ``.env``. Example: + + .. code:: + + USERNAME=@example:example.com + PASSWORD=password + SERVER=https://example.com + +- change the ``config.toml``: `more about allowlist and blocklist + formats `__ + Example: + + .. code:: toml + + [simplematrixbotlib.config] + allowlist = [] + blocklist = [] + admin_id = '@admin:example.com' + +- check that dots-bot-api is accessible, if it works then you can + continue. + +- change base url in ``src/config/dots_bot_api_config.py``: Example: + + .. code:: python + + _base_url = "https://dotsapi.server.com" + +- run ``sudo docker-compose up -d`` in the project folder. + +- run ``sudo docker ps`` to see that ``dots_matrix_bot`` is run. + +- Now you can add bot to your chat and run commands. + Template ========