Create chathist.lua