fix
This commit is contained in:
parent
01bd6048c3
commit
2df9034242
@ -49,9 +49,9 @@ case $1 in
|
||||
source $d/src/ai/syui/game/character.zsh
|
||||
create_game_user $2
|
||||
;;
|
||||
create-item)
|
||||
create-yui)
|
||||
source $d/src/ai/syui/game/character.zsh
|
||||
create_item
|
||||
create_yui
|
||||
;;
|
||||
get-game-user)
|
||||
source $d/src/ai/syui/game/character.zsh
|
||||
|
@ -351,8 +351,8 @@ if echo $json|jq . ;then
|
||||
fi
|
||||
}
|
||||
|
||||
function create_item() {
|
||||
col=ai.syui.item
|
||||
function create_yui() {
|
||||
col=ai.syui.yui
|
||||
rkey=self
|
||||
did=$did_yui
|
||||
handle=$handle_yui
|
||||
@ -364,10 +364,13 @@ function create_item() {
|
||||
url=https://$pds/xrpc/$req
|
||||
cid=bafkreia3huw2gdenqatoobx3hcft74chced46bw4znfgepo5aenegobkri
|
||||
imguri=https://cdn.bsky.app/img/feed_thumbnail/plain/$did_yui/${cid}@jpeg
|
||||
imgurl=https://git.syui.ai/ai/ai/raw/branch/main/item/
|
||||
imgurl=https://git.syui.ai/ai/ai/raw/branch/main/img/item/card
|
||||
json_card=" \"id\": $id, \"name\": \"$name\", \"img\": \"${imgurl}/${id}.webp\""
|
||||
json_card=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/item/card.json|jq .`
|
||||
json_weapon=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/item/weapon.json|jq .`
|
||||
json_card=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/json/card.json|jq ".[]"`
|
||||
json_weapon=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/json/weapon.json|jq ".[]"`
|
||||
json_system=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/json/system.json|jq ".[]"`
|
||||
json_character=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/json/character.json|jq ".[]"`
|
||||
json_ability=`curl -sL https://git.syui.ai/ai/ai/raw/branch/main/json/ability.json|jq ".[]"`
|
||||
json="
|
||||
{
|
||||
\"repo\": \"$handle_yui\",
|
||||
@ -377,6 +380,9 @@ function create_item() {
|
||||
\"record\": {
|
||||
\"card\": ${json_card},
|
||||
\"weapon\": ${json_weapon},
|
||||
\"system\": ${json_system},
|
||||
\"character\": ${json_character},
|
||||
\"ability\": ${json_ability},
|
||||
\"createdAt\": \"${created}\",
|
||||
\"updatedAt\": \"${created}\"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user