Question About How to Setup A bot with VPS

I am a little confused as how the whole botting with a vps works. I thought a VPS was just for hosting a website. Pls help a noob out.