This version is now depricated due to a library change.
Lithia.py python source.
If you are here for source code in order to learn and write you're own bot, you have come to the wrong place. There are much better examples out on the web than this.
API Links:
Discord.py: https://github.com/Rapptz/discord.py
Discord.py Docs: https://discordpy.readthedocs.io/en/latest/api.html
Python.AIML: https://github.com/paulovn/python-aiml
Python.AIML Docs: http://www.alicebot.org/TR/2011/