Update README
This commit is contained in:
parent
01e4e9f18b
commit
c60809b94a
14
README.md
14
README.md
|
@ -6,8 +6,8 @@ Requires libolm to be installed. in Debian this is done with `apt install libolm
|
|||
|
||||
## Requiements
|
||||
|
||||
- Python 3.8
|
||||
- libolm
|
||||
- Python 3.8
|
||||
- libolm
|
||||
|
||||
## Intallation
|
||||
|
||||
|
@ -32,3 +32,13 @@ After that you can begin sending messages
|
|||
source venv/bin/activate
|
||||
matrix-bot message "Message Content" # To send to the default room
|
||||
matrix-bot message -r '!yourRoomId' "Message Content" # To send to a specific room
|
||||
|
||||
Or start the bot in daemon mode. In this mode the configured room will be monitored for incoming messages and you can send messages from external scripts with `matrix-botctl`
|
||||
|
||||
cd MATRIX_BOT_DIR
|
||||
source venv/bin/activate
|
||||
matrix-bot
|
||||
|
||||
# Then you can send messages with
|
||||
|
||||
matrix-botctl message "Message Content"
|
||||
|
|
|
@ -27,7 +27,7 @@ def cli() -> None:
|
|||
|
||||
@cli.command()
|
||||
@click.argument('message', nargs=-1)
|
||||
def send(message: list) -> None:
|
||||
def message(message: list) -> None:
|
||||
send_message(' '.join(message))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue