1
0
bot/docs/wiki.md
2024-03-30 02:57:38 +09:00

1.1 KiB

test-notify

./target/debug/ai n|jq -r ".notifications|.[].cid" >> ~/.config/ai/txt/notify_cid*
./target/debug/ai bot

docker

$ docker run -it syui/aios ai
$ docker run -it -d syui/aios zsh -c "ai login <handle> -p <password> && ai bot"
$ cp -rf ~/.config/ai ./.config/

$ docker compose up

cron

$ sudo pacman -S fcron
$ fcrontab -e
* * * * * $HOME/bot/test/ai.zsh c

ssh

$ ssh-keygen -f /.ssh/diffusers.key -t ed25519
FROM syui/aios
ADD .ssh /root/.ssh
Host diffusers
	HostName localhost
	User root
	IdentityFile ~/.ssh/diffusers.key
	StrictHostKeyChecking no
	UserKnownHostsFile /dev/null
services:
  aios:
    #image: syui/aios
    build:
      context: .
    restart: always
    volumes:
      - ./.config:/root/.config
    command: ai bot -a syui.syu.is

openapi

# https://github.com/rdmurphy/atproto-openapi-types
$ curl -sLO https://raw.githubusercontent.com/rdmurphy/atproto-openapi-types/main/spec/api.json

plc

# 何度か実行するとplcをlatestまでexportされる
$ .config/ai/scpt/test/pds.zsh e