diff --git a/scpt/character.zsh b/scpt/character.zsh index 1b32b8e..423dcfd 100755 --- a/scpt/character.zsh +++ b/scpt/character.zsh @@ -79,20 +79,29 @@ function create_game_character() { repo=$did_yui json="{\"collection\":\"$col\", \"rkey\":\"$rkey\", \"repo\":\"$repo\"}" if [ $((RANDOM % 2)) -eq 0 ];then - sex=male + gender=male else - sex=female + gender=female fi case $name in ai) - sex=none;; + gender=none + group=origin + season=0 + ;; chinese|dragon|cerberus|pegasus) - sex=male;; + gender=male + group=fantasy + season=1 + ;; kitsune|phoenix|leviathan|kirin|wyvern) - sex=female;; + gender=female + group=fantasy + season=1 + ;; *) - continue;; + continue ;; esac jj=`curl -sL "$url?repo=$repo&collection=$col&rkey=$rkey"` @@ -119,12 +128,7 @@ function create_game_character() { nickname=$name fullname=$name uri=at://${did_yui}/$col/$chara - if [ "$name" = "ai" ];then - group=origin - sex=none - else - group=fantasy - fi + json="{ \"repo\": \"$handle_yui\", @@ -136,7 +140,8 @@ json="{ \"name\": \"$name\", \"fullname\": \"$fullname\", \"nickname\": \"$nickname\", - \"sex\": \"$sex\", + \"gender\": \"$gender\", + \"season\": $season, \"group\": \"$group\", \"embed\": { \"\$type\": \"app.bsky.embed.external\",