Hugbot is a project mainly written in Python, it's free.
Licensed under GPLv3 or Higher.
Most configuration should be relatively self-explanatory.