2023-10-20 14:30:09 +00:00
|
|
|
## ai `bot`
|
|
|
|
|
2023-10-20 14:33:38 +00:00
|
|
|
<img src="./icon/avatar.png" width="100">
|
|
|
|
|
2024-02-07 01:55:31 +00:00
|
|
|
```sh
|
|
|
|
$ ai
|
|
|
|
```
|
|
|
|
|
2023-10-20 14:30:09 +00:00
|
|
|
```sh
|
|
|
|
$ cargo build
|
2023-10-20 14:33:38 +00:00
|
|
|
$ ./target/debug/ai ai -t
|
2023-10-20 14:30:09 +00:00
|
|
|
```
|
2024-02-07 01:55:31 +00:00
|
|
|
|
|
|
|
### login
|
|
|
|
|
|
|
|
```sh
|
2024-02-07 02:58:39 +00:00
|
|
|
# ai token $handle -p $password
|
2024-02-07 01:55:31 +00:00
|
|
|
$ ai t yui.syui.ai -p password
|
|
|
|
|
|
|
|
$ cat ~/.config/ai/token.toml
|
|
|
|
```
|
|
|
|
|
2024-02-07 02:58:39 +00:00
|
|
|
```sh
|
|
|
|
# ai token $handle -p $password -s $server
|
|
|
|
$ ai t ai.syu.is -p password -s syu.is
|
|
|
|
```
|
|
|
|
|
2024-02-07 01:55:31 +00:00
|
|
|
### refresh
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ai r
|
|
|
|
```
|
|
|
|
|
2024-02-07 02:58:39 +00:00
|
|
|
```
|
|
|
|
# server: syu.is
|
|
|
|
$ ai r -s syu.is
|
|
|
|
```
|
|
|
|
|
|
|
|
### notify
|
|
|
|
|
|
|
|
```
|
|
|
|
$ ai n
|
|
|
|
```
|
|
|
|
|