You probably have a cold, which is a viral infection that can cause the eye discharge you have. Colds usually get better pretty quickly on their own so the trick is to try to feel better with fluids, acetaminophen, and over-the-counter cold remedies until your body can fight it off. When it does, your eye symptoms should improve.
Would you like more information about eye conditions that may cause a discharge?