If you are so determined, start from JD's JellyBot source code:
[Only registered and activated users can see links. Click Here To Register...]
Not sure if this will help much, but I also found that BigPoint uses this product:
[Only registered and activated users can see links. Click Here To Register...]
(just look in featured clients tab I think)
You would be better off trying to start a bot for a private server, give up on this madness.