Compare commits

...

4 Commits

Author SHA1 Message Date
Patrick Neff 2895c53225 Merge branch 'master' into icinga 2020-08-06 19:50:29 +02:00
Patrick Neff cd3b03c339 Fix upload_keys 2020-08-06 19:49:54 +02:00
Patrick Neff 6f1f9c598d Fix upload_keys 2020-08-06 19:47:25 +02:00
Patrick Neff da1e1df6df fix upload_keys 2020-08-06 19:09:42 +02:00
2 changed files with 13 additions and 1 deletions

View File

@ -18,6 +18,11 @@ Create a virtualenv
source venv/bin/activate
pip install https://git.gaja-group.com/gaja-group/matrix-bot
## Configuration
The configuration is stored in `$HOME/.config/matrix-bot/` and resides in directories within that directory.
By default the configuration file will be loaded from the `default` profile folder, this can be changed by running `matrix-bot -b PROFILE_NAME COMMANDS...`
## Usage
Before you can send encrypted messages you must verify the bot with the matrix homeserver. To to login and do this use `matrix-bot verify`
@ -37,3 +42,9 @@ Or start the bot in daemon mode. In this mode the bot will listen for defined ev
cd MATRIX_BOT_DIR
source venv/bin/activate
matrix-bot run
When the bot is running and the socket plugin is active you can send messages via the running bot.
cd MATRIX_BOT_DIR
source venv/bin/activate
matrix-bot client send '!yourRoomId' "Message Content"

View File

@ -129,7 +129,8 @@ class Bot(object):
return self.__client
async def __upload_keys(self) -> None:
await self.client.keys_upload()
if self.client.should_upload_keys:
await self.client.keys_upload()
if self.client.should_query_keys:
await self.client.keys_query()