I will like to include ban or pause function in my smart contract to prevent bot to buy from pancakeswap when added liquidity of the new listed token.
please refer to this before ask any questions.
OZ already has Pausable module that you can use. please refer to documentation. if you do not understand, maybe you need some devs to help you out.
You can use
ERC20Pausable extention: https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#ERC20Pausable