You'd modify the "CreateFlaskLogic" function in "Routines\Exile\Exile.cs".
However, the bot uses the potions as fast as it can, there's a game delay for using pots, and the effects of HP flasks don't stack (you'd need HP + Hybrid I think).
Perhaps the issue you are seeing, is that it only pots in combat, which is how the current bot is setup to work?