A PHP bot that is pretty badly written, but it provides you with the general concept of how to add commands, and allows you to get the bitcoin price, dogecoin price, and difficulty, and some other commands.