Compare commits
2 Commits
3910cf754c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
e780283e5b
|
|||
|
6876fb741c
|
5
.env.example
Normal file
5
.env.example
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Admin handle (bot will respond to admin commands from this user)
|
||||||
|
ADMIN=syui.ai
|
||||||
|
|
||||||
|
# Bluesky host (optional, default: bsky.social)
|
||||||
|
HOST=syu.is
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,3 +18,4 @@ pnpm-lock.yaml
|
|||||||
*/target/
|
*/target/
|
||||||
*/**/*.rs.bk
|
*/**/*.rs.bk
|
||||||
.claude
|
.claude
|
||||||
|
.config
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
FROM syui/aios
|
FROM syui/aios
|
||||||
|
|
||||||
WORKDIR /root
|
COPY ./target/release/aibot /usr/sbin/aibot
|
||||||
ADD ./test/entrypoint.sh .
|
|
||||||
RUN chmod +x /root/entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/root/entrypoint.sh"]
|
WORKDIR /root
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
- name : aibot
|
- name : aibot
|
||||||
- base : [aios](https://git.syui.ai/ai/os)
|
- base : [aios](https://git.syui.ai/ai/os)
|
||||||
- host : [yui.syui.ai](https://bsky.app/profile/yui.syui.ai), [ai.syu.is](https://web.syu.is/profile/ai.syu.is)
|
- host : [yui.syui.ai](https://bsky.app/profile/yui.syui.ai), [ai.syu.is](https://syu.is/profile/did:plc:6qyecktefllvenje24fcxnie)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ aibot
|
$ aibot
|
||||||
@@ -28,14 +28,14 @@ $ aibot ai -t avatar
|
|||||||
### login
|
### login
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# ai login $handle -p $password
|
# aibot login $handle -p $password
|
||||||
$ aibot l yui.syui.ai -p password
|
$ aibot l yui.syui.ai -p password
|
||||||
|
|
||||||
$ cat ~/.config/ai/token.toml
|
$ cat ~/.config/ai/token.toml
|
||||||
```
|
```
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# ai l $handle -p $password -s $server
|
# aibot l $handle -p $password -s $server
|
||||||
$ aibot l ai.syu.is -p password -s syu.is
|
$ aibot l ai.syu.is -p password -s syu.is
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
19
compose.yml
19
compose.yml
@@ -1,11 +1,16 @@
|
|||||||
services:
|
services:
|
||||||
aios:
|
bot:
|
||||||
#image: syui/aios
|
|
||||||
#command: aibot bot -a syui.syu.is
|
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
restart: always
|
dockerfile: Dockerfile
|
||||||
env_file:
|
image: syui/aios:custom
|
||||||
- .env
|
container_name: aibot
|
||||||
|
restart: unless-stopped
|
||||||
|
command: ["aibot", "bot", "-a", "${ADMIN:-syui.ai}"]
|
||||||
volumes:
|
volumes:
|
||||||
- ./.config:/root/.config
|
- ./.config/syui/ai/bot:/root/.config/syui/ai/bot
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/zsh
|
|
||||||
|
|
||||||
#aibot l $HANDLE -p $PASSWORD -s $HOST
|
|
||||||
aibot bot -a $ADMIN
|
|
||||||
Reference in New Issue
Block a user