Is it a bot you built or are you using stockfish?
If it's a bot you've built, then you'd need to spend some time learning about search optimizations. Another option entirely is to switch to a fast language such as C or C++. If you have a lot of time on your hands you could try these tutorials:
www.youtube.com/watch?v=bGAfaepBco4&ab_channel=BluefeverSoftwareIf it's stockfish, and you're using this (
github.com/ShailChoksi/lichess-bot), then consider changing the movetime in config.yml. It'll play worse, but that's cause it takes time to find the best move.
If you're unsure, then you're probably using stockfish or a similar engine.