Quote:

On 1:TEXT:quiet:#:/msg $chan Quiet mode on | /set %quietbot 1
Now, what should happen, is when I type quiet in the channel, group1 should disable and no longer run...

Here you just change the variable and thats all.
If you want to use groups then you dont need the variable at all. Maybe something like this:

Code:

on 1:text:!quietbot:#: {
  if ($group(#group1).status == on) {
    .disable #group1
  }
}

on 1:text:!noisybot:#: {
  if ($group(#group1).status == off) {
    .enable #group1
  }
}



Or if you need the variable too then something like:

Code:
On 1:TEXT:quiet:#: {
  msg $chan Quiet mode on
  set %quietbot 1
  quietswich
}

On 1:TEXT:noisy:#: {
  msg $chan Quiet mode off
  set %quietbot 0
  quietswich
}

alias quietswich {
  if (%quietbot == 1) {
  .disable #group1
  }
  else {
  .enable #group1
  }
}


echo -a $signature