Administer outside of game

I’m trying to find ways go make a type of IRC in garry’s mod so you could administer a server but the closest thing I found was a discord addon (maybe I’m not searching for it properly) but it uses a bot which isnt allowed on some (if not all) server hosts, how could this be done? I would much rather be able to make my own but dont know how I would go about it

Read about RCON