This Script will Deop, Dehalfop, and Devoice a user and set +m (muted/moderated) on a channel, useful for flooders you don't want kicked, just type !shutup you might want it to only work for you, or add the script to botmaster only(or whatever your type of bot calls it) cause it can be abused badly.
It's a simple script for a bot, it goes well if your bot has autojoin on invite and you want it to be a "shared" bot, all you say is !sayrooms and it says the channels it's in, if it's op, halfop, or voice there(I wasn't able to make it able for the advanced powers like ~ and &) it's been known not to say all the channels if it lags, and it also works in PMs, it uses notices, so if you have some..