learning lua by building a bot