Need help with making my own bot program?

I suggest you take a look at GitHub for some examples of bots.
One thing for sure, it’s indeed possible to do this in Visual Studio.