1% transaction fee for the owner?

How to implement a 1% fee on every transaction sent to the owner wallet?
Only if the amount of token that is being transfered is more than 1000?
My transfer function looks like this:

function _transfer(
address sender,
address recipient,
uint256 amount
  ) internal {
require(sender != address(0), 'BEP20: transfer from the zero address');
require(recipient != address(0), 'BEP20: transfer to the zero address');

_balances[sender] = _balances[sender].sub(
  amount,
  'BEP20: transfer amount exceeds balance'
);
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
  }

good, only thats pure scam lol

Maybe you can have a look at the safemoon.sol

I think you want to charge fee when users transfer, maybe it can be:

_balances[sender] = _balances[sender].sub(amount);
uint256 fee = amount.mul(feeRate).div(100);
_balances[_owner] =  _balances[_owner].add(fee);
_balances[recipient] = _balances[recipient].add(amount.sub(fee));

no, people will be informed about this, it’s a charity token