Update README
This commit is contained in:
parent
01e4e9f18b
commit
c60809b94a
10
README.md
10
README.md
|
@ -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"
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue