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

https://github.com/dvob/rocket-chat-client


https://github.com/dvob/rocket-chat-client

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# rocket-chat-client
[![GoDoc](https://godoc.org/github.com/dvob/rocket-chat-client/pkg/rocketchat?status.svg)](https://godoc.org/github.com/dvob/rocket-chat-client/pkg/rocket-chat-client)
[![Go Report Card](https://goreportcard.com/badge/github.com/dvob/rocket-chat-client)](https://goreportcard.com/report/github.com/dvob/rocket-chat-client)

## Usage
To use the Rocket.Chat client you have to configure the server URL, a user ID and a token.
The user ID and a token can be created under https:///account/tokens

```
export RC_URL=https://your-rocket-chat-server.com
export RC_USER_ID=...
export RC_TOKEN=...
```

Then you can:
```shell
# list users
rocket-chat-client list user

# list channels
rocket-chat-client list channel

# send message
rocket-chat-client send "@username" "Hello World!"
rocket-chat-client send "#channel-name" "Hello World!"
```

With `rocket-chat-client completion` you can generate shell completions for Bash, ZSH, Fish and Powershell.
Checkout `rocket-chat-client completion --help` for more information.