If your bot is a mirc bot you can use the same code. If you want your bot, named Gomp to devoice itself when it gets voice if opped, you can use the same code I gave you above. if you're looking to use "if I get opped devoice myself", then you can use:
on *:op:#utvikling: {
if (($opnick == $me) && ($me isvoice #)) { mode # -v $me }
}
That would go in your BOT'S ALT + R. If YOU want to devoice your BOT instead of it doing it for itself, you would do:
on *:op:#utvikling: {
if (($opnick == gomp) && (gomp isvoice #)) { mode # -v gomp }
}
you could also do this if you want to be the one to monitor you both:
on *:op:#utvikling: {
if (($opnick == gomp) || ($opnick == $me) && ($opnick isvoice #)) { mode # -v $nick }
}