Make a text file - prop.txt
In this text file, store all the commands.
UNLOCK <something>
UNLOCK <something else>
UNLOCK <more unlocks blah etc>
OWNERKEY :
HOTSKEY :
MEMBERKEY :
ETC :
LOCK <something>
LOCK <more>
LOCK <etc>

instead of <somethings> insert the parameters.
then
Code:
alias closechan {
var %chan = $1, %lines = $lines(prop.txt), %i = 0
while (%i < %lines) {
inc %i
PROP %chan $read(prop.txt,%i)
}
echo -a *** Channel closed: $+(%chan,.)
}


I hope you understand what I mean, if not, ask again.