"Borrow" source function from PyMoronBot

I really should have made this as a fork of PyMoronBot so I could steal
functions more easily