@OfficalCherry,
Calm the **** down.
Teenagers (and I have little doubt that you are all teens) make errors of judgment like this
all the time. Your friend, I think, is the one who really made the error of judgment, by being pushy and telling your crush that you wanted a hug. You were unprepared for that.
Here's what you can do.
Go up to your crush when he's alone. I know it can be difficult, but if he is alone (or at least not with a huge posse of guys), it should be easier. And say (here's your script). "When ___ {insert the name of your blabbermouth friend here} told you I wanted a hug, I wasn't ready. Well, I want you to know, ___ {insert the name of your crush here}, I'm ready now."
Then, wait maybe three seconds. If nothing happens, start to slowly walk away.
I guarantee you this will be very flirtatious. As to whether your crush takes the bait, that much is up to him. This is game-playing and game-playing is lousy for relationships, but it's fine for reeling in someone. And this is a very minor game that won't hurt anyone.
Try it. You've got nothing to lose.