Skip to content

Commit

Permalink
Improve appoint_admins_in_proposals_group.sh script (#4526)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpeebles authored Oct 9, 2023
1 parent 02836bb commit 782206b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/proposals/appoint_admins_in_proposals_group.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/bin/sh

GOVERNANCE_CANISTER_ID=$1
SNS_NAME=$2
USER_ID=$3
USERNAME=$4

# Set current directory to the scripts root
SCRIPT=$(readlink -f "$0")
SCRIPT_DIR=$(dirname "$SCRIPT")
cd $SCRIPT_DIR/..

TITLE="Appoint @kinic_developer_org as admin of the Kinic Proposals group"
SUMMARY="For each given user, the proposals_bot will call into the group canister corresponding to the given governance canister, to set the user's role within the group to admin.\n\nThis will allow them to update the group description, set the group avatar, and moderate messages if necessary."

GOVERNANCE_CANISTER_ID=74ncn-fqaaa-aaaaq-aaasa-cai
USER_ID=b2vtn-faaaa-aaaar-aok7q-cai
TITLE="Appoint @$USERNAME as admin of the $SNS_NAME Proposals channel"
SUMMARY="This will allow them to update the channel description, set the avatar, and moderate messages if necessary."

# add_platform_operator args
ARGS="(record { governance_canister_id = principal \"$GOVERNANCE_CANISTER_ID\"; users = vec {principal \"$USER_ID\"; } })"
Expand Down

0 comments on commit 782206b

Please sign in to comment.