From 782206be5eed8d930d22414de17d84babad73bb2 Mon Sep 17 00:00:00 2001 From: Hamish Peebles Date: Mon, 9 Oct 2023 08:58:02 +0100 Subject: [PATCH] Improve `appoint_admins_in_proposals_group.sh` script (#4526) --- .../proposals/appoint_admins_in_proposals_group.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/proposals/appoint_admins_in_proposals_group.sh b/scripts/proposals/appoint_admins_in_proposals_group.sh index cd72689e48..a7dff4351c 100755 --- a/scripts/proposals/appoint_admins_in_proposals_group.sh +++ b/scripts/proposals/appoint_admins_in_proposals_group.sh @@ -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\"; } })"