Oshvam It makes one call each time I run the program, I don't want to set it in a loop yet. Your cost would depend a lot of what AI model you use, gpt-3.5-turbo is cheap. I was testing it with gpt-4-1106-preview that was launched this week and it's a bit cheaper than gpt-4 (it's going to be gpt-4-turbo if I understood it correctly)
I didn't make it detect being summoned, but it's certainly feasible. I did make a bot like that for another forum, machado2/clippy , but it's built as a fork of SockBot that is incompatible with Farum