I lied to my best friend about her cake
Why did you lie to your best friend?
She once lied to me, so it was time for revenge.
Seeking revenge tends to be a negative thing and you shouldn't lie to your friends, even if you were lied to in the past. I think you should consider moving on from the past harms and be a good and honest friend moving forward.
She deserved to be lied to.
I don't see the reason why that should be the case. Lying to friends will only get you in trouble in the future. I'd suggest you stop doing that.