Hi IRC Experts

Could someone help me with a few remote scripts for a bot I'm using?

1) When I type !forum -> The bot replies with a PM link to a specified forum.

2) When I type !mod or !invite -> It replies with a PM. At the same time, the bot pings designated people online. Also, how should I set these designated people?

3) When I type !calc -> The bot does calculations?

And a general question, how I get the bot to join invite only channels? I'm doing /cs invite at the moment but I have to actually click it myself. How can I get the bot to automatically accept an invite?

Thanks guys!