Update README

This commit is contained in:
Patrick Neff 2020-08-04 12:08:16 +02:00
parent 01e4e9f18b
commit c60809b94a
2 changed files with 13 additions and 3 deletions

View File

@ -32,3 +32,13 @@ After that you can begin sending messages
source venv/bin/activate source venv/bin/activate
matrix-bot message "Message Content" # To send to the default room matrix-bot message "Message Content" # To send to the default room
matrix-bot message -r '!yourRoomId' "Message Content" # To send to a specific 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"

View File

@ -27,7 +27,7 @@ def cli() -> None:
@cli.command() @cli.command()
@click.argument('message', nargs=-1) @click.argument('message', nargs=-1)
def send(message: list) -> None: def message(message: list) -> None:
send_message(' '.join(message)) send_message(' '.join(message))