I suffered 4 months ago with really bad anxiety, depression, panick attacks could this have caused me to develope IBS? I have all the symptoms!

Maybe, maybe not. Are you sure it is IBS? This is a classic situation showing how critically important is to have a thorough (extensive) intake with your doctor to go over all your problems, and the time course of those problems, as well as all the ancillary history. It is imperative to avoid "knee-jerk" diagnosis which insurance companies push us to make by rewarding fast appointments. .