Skip to content

Instantly share code, notes, and snippets.

@theist
Created October 1, 2014 09:20
Show Gist options
  • Save theist/f71bf38a506e1c0824d7 to your computer and use it in GitHub Desktop.
Save theist/f71bf38a506e1c0824d7 to your computer and use it in GitHub Desktop.
gam script creator
#!/usr/bin/perl
my $group = shift;
my @users = ();
my $gam_call = "python gam.py";
die "please specify a group" unless $group;
while (<>) {
chomp;
push(@users, $_);
}
print "$gam_call create group $group\n";
print "$gam_call update group $group is_archived true\n";
print "$gam_call update group $group max_message_bytes 25M\n";
for $user (@users) {
print "$gam_call update group $group add member $user\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment