Help!

God, I've made such a mess.

So basically, I started dating this guy, we dated for six months (long distance) he was an amazing boyfriend! Then he had to start studying hard because his parents expect a lot from him. Slowly he messaged me less and less. I eventually assumed we'd broken up, at this point he'd not messaged me for weeks.

A couple months went by, then he came back, I was both ecstatic and sad because I'd been reminded of how much I'd missed him. He also assumed we'd broken up, we talked about it and decided to stay good friends. After long convos I eventually came to the conclusion that I'd started falling for him again. However he told me he has to leave in August again.

Now today, my other friend just told me he likes me, out of kindness and confusion I said I liked him back, after officially becoming a couple I've come to realize I don't like him like that.

The only problem is I'll look like an absolute dick if I brake up with him. Especially when he's known me and the other guy for ages. To make matters worse he told me he's also leaving soon, but he said he could stay a bit longer and for some reason I was kinda sad?

Lord I've messed up big time