From b0bd67b27974559c2bffb615cef86e066bd0abff Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 24 Feb 2024 20:43:00 +0900 Subject: [PATCH] fix readme --- README.md | 41 +++++++++++++++++++++++++++++------------ test/entrypoint.sh | 2 +- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 23bd1aa..acceb44 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ - name : ai bot -- base : [rust](https://www.rust-lang.org) +- base : [ai os](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) ```sh @@ -57,17 +57,17 @@ $ ai n | jq . $ ai bot ``` -|command|sub|type|body| -|---|---|---|---| -|@yui.syui.ai did||mention, reply| [plc.directory](https://plc.directory)/$did/log | -|@yui.syui.ai card|r, s, b|mention, reply| https://card.syui.ai | -|@yui.syui.ai ten|start, d, p|mention, reply| https://card.syui.ai | -|@yui.syui.ai fav|{cid}|mention, reply| https://card.syui.ai | -|@yui.syui.ai egg|{password}|mention, reply| https://card.syui.ai | -|@yui.syui.ai 占い||mention, reply| https://yui.syui.ai | -|@yui.syui.ai nyan|🍰|mention, reply| https://yui.syui.ai | -|@yui.syui.ai diffusers|{keyword}|mention, reply| [diffusers](https://huggingface.co/docs/diffusers/index) | -|@yui.syui.ai sh(admin)|{command}|mention, reply| [archlinux](https://wiki.archlinux.org/title/Systemd-nspawn) | +|command|sub|type|link|auth| +|---|---|---|---|---| +|@yui.syui.ai did||mention, reply| [plc.directory](https://plc.directory)/$did/log |user| +|@yui.syui.ai card|r, s, b|mention, reply| [card.syui.ai](https://card.syui.ai) |user| +|@yui.syui.ai ten|start, d, p, coin|mention, reply| [card.syui.ai](https://card.syui.ai) |user| +|@yui.syui.ai fav|{cid}|mention, reply| [card.syui.ai](https://card.syui.ai) |user| +|@yui.syui.ai egg|{password}|mention, reply| [card.syui.ai](https://card.syui.ai) |user| +|@yui.syui.ai 占い||mention, reply| [yui.syui.ai](https://yui.syui.ai) |user| +|@yui.syui.ai nyan|🍰|mention, reply| [yui.syui.ai](https://yui.syui.ai) |user| +|@yui.syui.ai diffusers|{keyword}|mention, reply| [huggingface.co/diffusers](https://huggingface.co/docs/diffusers/index) |user| +|@yui.syui.ai sh|{command}|mention, reply| [archlinux.org](https://wiki.archlinux.org/title/Systemd-nspawn) |admin| ### test @@ -84,3 +84,20 @@ $ cargo install --force cargo-make $ cargo make build ``` + +### docker + +> .env + +```sh +HANDLE=ai.syu.is +PASSWORD=xxx +HOST=syu.is +ADMIN=syui.syu.is +``` + +```sh +$ mkdir .ssh +$ docker compose build +$ docker compose up -d +``` diff --git a/test/entrypoint.sh b/test/entrypoint.sh index dfdd5dc..bed078b 100644 --- a/test/entrypoint.sh +++ b/test/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/zsh -ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -a syui.$HOST +ai l $HANDLE -p $PASSWORD -s $HOST && ai bot -a $ADMIN