Its different for different individuals,at different times.you need to see what foods cause discomfort to you and stop having them at that time.Gradually introduce once you are asymptomatic.Thats the best way to handle diet in IBS.
Next Steps
ensure stress relief and proper sleep.consult for total lifestyle guidance for IBS
Health Tips
https://www.myhealthclinic.org.in/lifestyle-medicine