How does Bot works?

I saw people are making bots, can I make a steam bot that I write
and will show

1 - Steam id
2- Name online in server

If I press 1
I write the steam id and it will ban the person
If i write 2
will show all players in the server and I press his number and he get banned

than will show the time.

U got me? haha

FoxedBot uses node.js, you could look at the source for that and go from there.

Meharryp can u accept me in steam?