10 lines
606 B
Bash
10 lines
606 B
Bash
#Community hoardan
|
|
follow(){ post "community/follow" '{"community_id":'$1',"follow":true}'; }
|
|
unfollow(){ post "community/follow" '{"community_id":'$1',"follow":false}'; }
|
|
following(){ echo "use <home> instead"; } # Maybe this will help.
|
|
|
|
comcreate(){ namedget desc "The community's display name (can be edited later)"; post "community" '{"name":"'$1'","title":"'"$desc"'"}'; }
|
|
comedit(){ echo "stub"; }
|
|
comdelete(){ namedget confirm "are you sure? (y/n)"; if [ confirm == "y" ]; then post "community/delete" '{"community_id":"'$1'","deleted":true}'; fi; }
|
|
addmod(){ echo "stub"; }
|
|
remmod(){ echo "stub"; } |