RusselB's method of using groups is the best idea, I just thought id add that its important to know that when the %quietbot value changes the code to enable or disable the group needs to be performed. The below code is the original method 0 = enabled 1 = quite.

%quitebot get set here then....
if (%quietbot) { .enable <group name> } | else { .disable <group name> }

^ dont be putting this code inside that group or when its disabled you cant run it to enable it smile

* I do question DO you reaaly want the bot stopped or just quitened? or is this the same thing in yourcase?