@M0YNG Mastodon server API is very simple to use without any libraries. But if you mean standalone bot, then you need to have a server which implements basics of AcitivityPub.
I've implemented my own 100% from scratch coded bot in PHP that is for example running @wwffbot