Blueetooth trigger rasberry pi

Hello everyone, I have a bluetooth problem with my rasberry (i lose bluetooth connections every few hours and when i’m restarting the bluetooth the problem is solving. Can it be solved if i will put a time trigger pattern which will restart the bluetooth every hour? And how can i setup it?