Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cybergruppe/cyberbot

A modular bot for the matrix protocol, supporting encryption.
https://github.com/cybergruppe/cyberbot

bot matrix python

Last synced: about 2 months ago
JSON representation

A modular bot for the matrix protocol, supporting encryption.

Awesome Lists containing this project

README

        

**Cyberbot**
----------------

A matrix chatbot written in python.

**Requirements**:

All required python modules are listed in the requirements.txt
file. Furthermore the bot needs read and write permissions in the installation
folder for correct execution.
[Libolm v3](https://gitlab.matrix.org/matrix-org/olm) needs to be installed.

**Execution**:

Specify the login credentials and server for the bot and the plugin locations in
the provided *config.ini* file.
Quotes should be generally omitted in the file.

An example ini file can be found in the repository.

After the bot has been configured, issue:

```sh
python cyberbot -c
```

To add the bot to a room, invite it via your matrix client. The bot will join
automatically.

**Commands**:

As the functionality of the bot depends heavily on the installed plugins, use
the `!help` command, in order to display the currently available features.
Use `!listplugins` to see all available plugins and use `!addplugin` to add one
of them into your room.

**Structure**:

The bot itself only uses the basic functionality of the `matrix-nio` module
to establish a matrix connection. All higher functionality is implemented in
*plugin files*. These plugins need to be located one of the folders specified in the `PLUGINPATH` in your config file.

Every plugin needs to define an async `register_to(plugin)` function, which is called upon
plugin loading, and a `HELP_DESC` variable, containing a string with a short
textual description of its features.

**Plugins**:
See [./PLUGINS.md](PLUGINS.md).