Skip to content

Commit 291ca90

Browse files
committed
Initial commit
0 parents  commit 291ca90

File tree

3 files changed

+83
-0
lines changed

3 files changed

+83
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build
2+
3+
chat

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Tech Thinker
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# chat
2+
Chat is a cli application that allows you to send messages to google and slack.
3+
4+
## Install
5+
Download binaries from github release and then install.
6+
7+
## Setup
8+
- Create config file at home directory. `.chat.ini`
9+
```ini
10+
[default]
11+
PROVIDER=slack
12+
SLACK_TOKEN=
13+
CHANNEL_ID=
14+
15+
[slack]
16+
PROVIDER=slack
17+
SLACK_TOKEN=
18+
CHANNEL_ID=
19+
20+
[google]
21+
PROVIDER=google
22+
WEB_HOOK_URL=
23+
```
24+
25+
## Usage
26+
- Send message using default provider
27+
```sh
28+
chat "hello"
29+
```
30+
31+
- Reply message using default provider
32+
```sh
33+
chat -t="<thread-id>" "Hello"
34+
```
35+
36+
- Send message using slack provider
37+
```sh
38+
chat --provider=slack "hello"
39+
```
40+
41+
- Reply message using slack provider
42+
```sh
43+
chat --provider=slack -t="<thread-id>" "Hello"
44+
```
45+
46+
- Send message using google provider
47+
```sh
48+
chat --provider=google "hello"
49+
```
50+
51+
- Reply message using google provider
52+
```sh
53+
chat --provider=google -t="<thread-id>" "Hello"
54+
```
55+
56+
- See help
57+
```sh
58+
chat --help
59+
```

0 commit comments

Comments
 (0)