If you open in both directions, your profit is the funding fee. There will be profit for as long as the funding fee is in your favor. Once it isn’t, it reduces your margin and can trigger a liquidation. I posted about that last week since this topic came up in telegram: FAQ: Can I get liquidated with a delta-neutral (long and short) leveraged position?
To be honest I’ve never used these kind of bots but I’ve read about them and discovered that they have as many risks as any other strategy. No such thing as free lunch in trading, everything has risks.