Making a faster transaction watching my wallet - Looking for dev

So... I'm just a front end developer and got in a bad spot.
I want to do something that could watch my account for the BNB that goes in and immediately send another token from the wallet to me. Is that possible with a smart contract?

PS: Is a farming nft account that i was apparently hacked and do not want to abandon the tokens there... the hacker removes my BNB in a matter of seconds, so i cant send my tokens to another wallet.

Is it possible? Could someone help me out?