Just a thought instead of writing a new bot why not try a windrop (eggdrop for windows) especially if you have found some scripts for tcl. Or maybe a mircstorm bot which is mirc based and you may be able to adapt some part of it to do what you want. The last alternative is to rent a shell account and run a full eggdrop bot which will be online 24/7 (as long as the shell host is running).
mircstorm
windrop

Hope this helps
Fire