is it possible to make a robot to write an event to a loaded .mrc script file? if yes how do i do it and how do i make the bot test itself? ie:

[MyNick] MyBotnick write On !@*:Join:#:/mode # +v $nick
[MyBotNick] !@*:Join:#:/mode # +v $nick has been written to somescriptfile.mrc

any help will be appreciated thanks.