It's sad how your boyfriend has used you. You should distance yourself from him by cutting any form of communication with him. Don't call, text or communicate with him online. You should go cold-turkey away. He doesn't deserve you for the way he has treated you. If he tries to communicate with you ignore him. If he persists tell him you want time alone to settle your mind. After not contacting him, in your case, for two weeks send him a text you're moving on with your life. Let him know you loved him but he used you and took your love for granted. He should have told you that he doesn't want to be in a relationship. Thank him for everything including using you.
Don't get back at him. Move on with your life. It is hurting but by not communicating with him for 2 weeks you will allow the healing process to begin which will enable you to gain the strength to move on. During this period don't engage in thinking about him and the good things you shared. Act as if you have never known that person.