Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.45 KB

README.rst

File metadata and controls

66 lines (43 loc) · 1.45 KB

dots-matrix-bot

dots-matrix-bot is the interface for dots-bot-api to have access to Dots Platform Clients API using matrix.

Setup

  • setup dots-bot-api, before continue.

  • clone this repository.

  • create .env. Example:

    USERNAME=@example:example.com
    PASSWORD=password
    SERVER=https://example.com
    BOT_API_BASE_URL=https://domain
    
  • change the config.toml: more about allowlist and blocklist formats Example:

    [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:

    _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

dots-matrix-bot uses simplematrixbotlibtemplate.

Author

Kostiantyn Klochko (c) 2023

License

Under the GNU Affero General Public License v3.0 or later.